#22065 [Com]: file() function
| From: | moptop69 at ntlworld dot com | Date: | Wed, 19 Feb 2003 15:25:39 +0000 |
| Subject: | #22065 [Com]: file() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33562@lists.php.net to get a copy of this message | ||
ID: 22065
Comment by: moptop69 at ntlworld 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.2-dev
New Comment:
Warning: Unknown(c:\inetpub\wwwroot\calendar.php): failed to open
stream: Permission denied in Unknown on line 0
i get this under IIS on Windows 200 when the IUSR_<hostname> does not
have the correct security access to the files, this has only recently
started showing this previously I would get a CGI/HTTP500 error message
instead.
if needs be make sure that all files in the webroot have the correct
permissions for your scripts to execute/read and where needed write.
Previous Comments:
------------------------------------------------------------------------
[2003-02-18 06:28:34] paul dot d dot rowlands at delphi dot com
[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
------------------------------------------------------------------------
[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)
------------------------------------------------------------------------
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