note 53319 deleted from function.fgets by betz

From: Date: Fri, 16 Sep 2005 09:25:55 +0000
Subject: note 53319 deleted from function.fgets by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-95281@lists.php.net to get a copy of this message
Note Submitter: ---- Trying to read a unix-origin file on a windoze system seems to be impossible without first passing the file through some sort of line-ending filter (I used wordpad). The documentation (found under 'unix line endings') appears to suggest that using the t flag in fopen causes EOL translation, but that didn't seem to make any difference for me, running php 4.10 bound to Apache under W2KSP4. I could bear having an optional flag in fgets (since it's the routine that most needs to know what sort of EOLs to expect), but it would be okay too if using the t flag did the job.

« previous php.notes (#95281) next »