...failed to open stream: Permission denied...
Posted: Tue Jul 15, 2003 12:42 am
Hello fellow PHP Developers,
I am a beginner in need of some help.
I am trying to install and configure PHP on a Windows XP computer with IIS 5.
Apparently, I was able to install it with a degree of success, but also with some limitations.
I have been getting errors when I try to open certain .txt files and / or run the exec() command.
Here's the error I get when trying to open a .txt file
The safe_mode in the php.ini file is turned Off.
I am sure I overlooked something. Any help would be greatly appreciated.
Thank you for your time.
I am a beginner in need of some help.
I am trying to install and configure PHP on a Windows XP computer with IIS 5.
Apparently, I was able to install it with a degree of success, but also with some limitations.
I have been getting errors when I try to open certain .txt files and / or run the exec() command.
Here's the error I get when trying to open a .txt file
exec() error:Warning: fopen(/orders.txt): failed to open stream: Permission denied in F:\Web Root\PHP Test Site\...\processorder.php on line 63
I've verified the path and set the IIS 5 folder access to Read, Write and Directory Browsing, and Execute Permissions to Scripts and Executables.Warning: shell_exec(): Unable to execute 'dir c:' in F:\Web Root\PHP Test Site\test.php on line 9
The safe_mode in the php.ini file is turned Off.
I am sure I overlooked something. Any help would be greatly appreciated.
Thank you for your time.