|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-11 02:28 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
I programmed a function that gets lines from file. /****************************************************/ $desc_fichero= fopen($fichero,"r"); $correcto = $correcto & $desc_fichero; if($desc_fichero){/*** Si el fichero se abre correctamente ******/ while(!feof($desc_fichero)) { $linea= fgets($desc_fichero,1000); $linea = trim($linea); if (!empty($linea).......... In version 4.0.6 fgets took the file line as is(Whith all characters).In newer version 4.1.1.converts the diferent tabs to a one space.Example: "Hi->->->How are you": 4.1.1= "Hi how are you" . 4.0.6:"Hi->->->How are you": Thanks