Bug #16875 Updated: FILE Function Checks Wrong Path
| From: | sniper@php.net | Date: | Sat, 27 Apr 2002 23:35:22 +0000 |
| Subject: | Bug #16875 Updated: FILE Function Checks Wrong Path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6314@lists.php.net to get a copy of this message | ||
ID: 16875
Updated by: sniper@php.net
Reported By: tonicpeddler@cs.com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Windows XP
PHP Version: 4.2.0
New Comment:
Can you test if the same thing happens with include() ?
Previous Comments:
------------------------------------------------------------------------
[2002-04-27 13:12:09] tonicpeddler@cs.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16875&edit=1