Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.php > #4341

Re: PHP speichert manche Dateien mit ?-Suffix ab.

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups de.comp.lang.php
Subject Re: PHP speichert manche Dateien mit ?-Suffix ab.
Date Sun, 8 Apr 2018 18:17:14 +0200
Organization solani.org
Lines 20
Message-ID <padfa8$g0r$1@solani.org> (permalink)
References <pab1r0$umo$1@news.albasani.net> <fisimqF8i7jU2@mid.individual.net> <pad5f6$7vn$1@news.albasani.net> <fiusujFo8aiU1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace solani.org 1523204232 16411 eJwFwYEBgDAIA7CXKNDKzmEK/59gwhD0PikquVx5DPqplxUm+9ptQuWbMb6VyAWCd0/VqLXjfQVYTMo/4XJuj5u5QJqODEXcw0774gdJpxyG (8 Apr 2018 16:17:12 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 8 Apr 2018 16:17:12 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
X-User-ID eJwFwYkBADAEBLCVKId1vPuP0ARibO1qMMXh9PnQTnZKDNcREPNQwXzh+wa2XZoUCzngAycoEV4=
Content-Language de-DE
X-NNTP-Posting-Host eJwNyMcBA0EIBLCWGNJCORyh/xJsPWXi8H7q5mpnl2ZCoJy76KzRQOXJZCLgytv/p+FIKeIPuOq556xYAfnw5osSzxHlT9Maql5O+2y5fm+KHW4=
Cancel-Lock sha1:3a8NHAL03QF+UAzdYEADEb1H+Vw=
In-Reply-To <fiusujFo8aiU1@mid.individual.net>
Xref csiph.com de.comp.lang.php:4341

Show key headers only | View raw


Am 08.04.2018 um 18:05 schrieb Arno Welzel:

> Tom Wallenfang:>
>>         $readnum = fopen("$urln", "r") or die("Tot.");
> 
> Besser:
> 
> $readnum = fopen($urln, "r") or die("Tot.");
> 
> Es gibt keinen vernünftigen Grund, eine einzelne Variable in
> Anführungszeichen zu setzen, wenn man als Parameter den Inhalt der
> Variablen nutzen will.

Ich glaube, dass man das ganz früher gemacht hat, um eine Konvertierung
zu String zu erzwingen. Schon lange steht aber der (string) Cast zur
Verfügung, der hier allerdings nicht einmal nötig sein dürfte (selbst im
Falle von strict_types=1).

-- 
Christoph M. Becker

Back to de.comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PHP speichert manche Dateien mit ?-Suffix ab. Tom Wallenfang <tom@wallenfang.de> - 2018-04-07 20:14 +0200
  Re: PHP speichert manche Dateien mit ?-Suffix ab. "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-04-07 20:34 +0200
    Re: PHP speichert manche Dateien mit ?-Suffix ab. Tom Wallenfang <tom@wallenfang.de> - 2018-04-08 15:36 +0200
      Re: PHP speichert manche Dateien mit ?-Suffix ab. "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-04-08 16:40 +0200
  Re: PHP speichert manche Dateien mit ?-Suffix ab. Arno Welzel <usenet@arnowelzel.de> - 2018-04-07 20:58 +0200
    Re: PHP speichert manche Dateien mit ?-Suffix ab. Tom Wallenfang <tom@wallenfang.de> - 2018-04-08 15:29 +0200
      Re: PHP speichert manche Dateien mit ?-Suffix ab. "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-04-08 16:41 +0200
        Re: PHP speichert manche Dateien mit ?-Suffix ab. Tom Wallenfang <tom@wallenfang.de> - 2018-04-08 18:09 +0200
          Re: PHP speichert manche Dateien mit ?-Suffix ab. "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-04-08 18:19 +0200
      Re: PHP speichert manche Dateien mit ?-Suffix ab. Arno Welzel <usenet@arnowelzel.de> - 2018-04-08 18:05 +0200
        Re: PHP speichert manche Dateien mit ?-Suffix ab. "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-04-08 18:17 +0200
          Re: PHP speichert manche Dateien mit ?-Suffix ab. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-04-08 19:55 +0200
            Re: PHP speichert manche Dateien mit ?-Suffix ab. "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-04-08 20:35 +0200
  Re: PHP speichert manche Dateien mit ?-Suffix ab. Claus Reibenstein <4spamersonly@kabelmail.de> - 2018-04-07 21:20 +0200
  Re: PHP speichert manche Dateien mit ?-Suffix ab. Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2018-04-08 06:03 +0000

csiph-web