You are here: Re: Includin files in the parent directory « PHP Programming Language « IT news, forums, messages
Re: Includin files in the parent directory

Posted by anbutu@gmail.com on 06/16/07 06:39

On Jun 16, 2:21 pm, "davin.pear...@gmail.com"
<davin.pear...@gmail.com> wrote:
> Here is my file index.php:
>
> <?php
> include "../parent.php";
> ?>
>
> When I try to run this code on a Linux server, it gives me the
> following error message:
>
> Warning: main(): open_basedir restriction in effect. File(../
> parent.php) is not within the allowed path(s): (.) in \
> \192.168.1.16\webfiles\files\2007-6\1475215\inner\index.php on line 3
>
> Warning: main(../parent.php): failed to open stream: Operation not
> permitted in \\192.168.1.16\webfiles\files\2007-6\1475215\inner
> \index.php on line 3
>
> Warning: main(): Failed opening '../parent.php' for inclusion
> (include_path='.;c:\php\includes') in \\192.168.1.16\webfiles\files
> \2007-6\1475215\inner\index.php on line 3
>
> What gives?

try chmod 555 parent_dir

 

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

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