|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-11-14 01:55 UTC] joey at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 12:00:01 2026 UTC |
<? $ad["image"]="default_image.gif"; $ad["alt"]="default_ad"; $ad["link"]="getlink.php?im=def"; $ad["status"]="default_image.gif"; if ($fi=fopen("ads.ini","r")) { $str="An empty string: "; // while (! feof($fi)) { // $str=$str . fgetc($fi); // echo fgetc($fi); // } // $str=fgets($fi, filesize($fi)); echo("File contain: " . $str); } else{ echo ("File is not open"); } fclose($fi); ?> I assume that getc() (or work with file system???) doesn't work, because, when I execute a while cycle it never ends. File "ads.ini" is in the same directory as php page. It contains: AdsHome=F:\jaunumi\ads AdsImagesHome=F:\jaunumi\ads\images Andris Jancevskis