#22065 [Opn]: file() function
| From: | paul dot d dot rowlands at delphi dot com | Date: | Tue, 18 Feb 2003 12:28:34 +0000 |
| Subject: | #22065 [Opn]: file() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33406@lists.php.net to get a copy of this message | ||
ID: 22065
User updated by: paul dot d dot rowlands at delphi dot com
Reported By: paul dot d dot rowlands at delphi dot com
Status: Open
Bug Type: Filesystem function related
Operating System: Windows 2000 server
PHP Version: 4.3.0
New Comment:
[18-Feb-2003 06:47:42] PHP Warning: file(d:/temp/ht1/180203.ht1) [<a
href='http://www.php.net/function.file'>function.file</a>]:
failed to
open stream: Permission denied in d:\Apache
Group\Apache2\htdocs\fa_tools_ht.php on line 103
Previous Comments:
------------------------------------------------------------------------
[2003-02-18 06:26:15] paul dot d dot rowlands at delphi dot com
The warnings have reduced with the stable release.
6 warnings in 48 hours.
------------------------------------------------------------------------
[2003-02-13 20:37:20] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-02-06 09:43:01] paul dot d dot rowlands at delphi dot com
The file must exist to continue in the code:-
if(file_exists($file1)==FALSE) die("File1 does not exist");
The file is everybody full control.
What would have if the file was in use by another server (updating) ?
Can php detect this condition ?
------------------------------------------------------------------------
[2003-02-06 08:45:38] sniper@php.net
Does the file exist?
What are the permissions for it?
(I think it's is_readable() that does not work correctly
on windows)
------------------------------------------------------------------------
[2003-02-06 01:52:50] paul dot d dot rowlands at delphi dot com
safe_mode = Off
;open_basedir =
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22065
--
Edit this bug report at http://bugs.php.net/?id=22065&edit=1