Posted by Wenting, Marcel on 09/24/06 16:35
mylek@hotmail.com wrote:
> I am using an apache server with PHP version 4.3.10-16. I uploaded the
> following script (testphp.php):
>
> <?php phpinfo(); ?>
>
> I get the standard PHP info screen. No problem there. However when I
> upload this script (learn.php):
>
> <?php gmdate("M d Y"); ?>
>
> I get:
>
> Warning: Unknown(/www/www.server.com /Users/******/learn.php): failed
> to open stream: Permission denied in Unknown on line 0
>
> Warning: (null)(): Failed opening
> '/www/www.server.com/Users/******/learn.php' for inclusion
> (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
>
> I changed the server path for security reasons while posting in here. I
> would appreciate any help. I don't see an difference in the two
> scripts. I know PHP works because the first script works.
>
The useraccount under which the webserver runs hasnt got permissions to
open the file,
you have to check the rights to that file, try a chmod 777
if that is succesfull try chmod 770, after that try 700.
if one fails keep the chmod used before.
[Back to original message]
|