|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-27 13:12 UTC] tonicpeddler at cs dot com
When I call: $data = file( "database.txt" ); From my file "c:\xitami\webpages\db\database.php", php doesn't check "c:\xitami\webpages\db\" for database.txt, instead it returns an error saying that "database.txt" doesn't exist in the directory "c:\xitami\webpages\db\database.php" I beleive this may be a bug, since it shouldn't be including the name of the php script in the directory. In the mean time I am specifying an absolute filename for database.txt, however I'd much prefer the modularity of relative file access. If you fix it, that's great, I hope someone contacts me. In that case could someone tell me where to download a prebuilt binary? I'm on dialup and a pretty slow machine, not very interested in downloading the source code again, and building, again. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 09:00:01 2025 UTC |
I looked through some of the PHP scripts I had written, and found a working example of fopen that works just fine using a relative file path. Pertinent exerpt: $log = fopen('log.txt', 'a'); fwrite($log, $text . "\n"); fclose($log); echo ' <a href="log.txt">View Log</a>'; Is this bug being dealt with?