|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-08-05 07:34 UTC] kodi_169 at tlen dot pl
the chop() command doesn't work. it worked good in 4.1.2, but now on 4.2.2 it just doesn't. i'm using APACHE 2.0.39 and 1.3.26 - it occurs in both versions. this has worked in 4.1.2: $nla = chop($nla); regards, gemini PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 23:00:01 2026 UTC |
<html> <?PHP $aaa = fopen("asd.txt","r+"); $bbb = fopen("qwe.txt","w+"); while(!feof($aaa)) { $linia = fgets($aaa); fwrite($bbb,"$linia"); echo "$linia"; } fclose($aaa); fclose($bbb); $aaa = fopen("asd.txt","w+"); $bbb = fopen("qwe.txt","r"); $nla = "nowa linia w pliku"; $nla = chop($nla); fwrite($aaa,"$nla"); while(!feof($bbb)) { $linia = fgets($bbb); fwrite($aaa,"$linia"); echo "$linia"; } ?> </html>