You are here: Re: Problem with relative path reference « PHP Language « IT news, forums, messages
Re: Problem with relative path reference

Posted by Rik on 02/21/07 15:15

On Wed, 21 Feb 2007 14:52:37 +0100, George <me@me.com> wrote:

> I am writing some PHP code that has lines of code like
> requires("../config.php") to reference a file one level above on the
> directory structure.
>
> When I run it, I get the following error:
> Failed opening required '../config.php'
> (include_path=3D'.:/usr/local/lib/php')
>
> However, on other servers it runs fine so I assume it is an Apache
> configuration that I am doing wrong. Could somebody point me to what I=

> need to fix?

Are you sure that's where the file lives? Check the current directory wi=
th =

getcwd(). Also, do you have read access to the above directory?
-- =

Rik Wasmus

 

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

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