You are here: Re: Probably a simple answer « All PHP « IT news, forums, messages
Re: Probably a simple answer

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация