I am having a nightmare with PHP on my home server at the moment...
I have stipped down the test to the basics and still can't get it to work.
I have a file called test.php stored in /usr/share/data/audio (an aliased directory in apache). This file simply contains the code...
Code:
<?php
fopen('play.xml', 'w') or die("can't open file");;
?>
The audio folder in which the php file sits has been chmod to 755 (also tried 777). Likewise test.php is chmod to 755.
Any ideas why even with these permissions set I've continuously getting:-
Quote:
Warning: fopen(play.xml) [function.fopen]: failed to open stream: Permission denied in /usr/share/data/audio/test.php on line 2
can't open file
|
Thanks
EDIT: PS Safe mode in PHP is not on.