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

Posted by George on 02/22/07 14:02

On Wed, 21 Feb 2007 Lekeas GK wrote...

|From: Rik <luiheidsgoeroe@hotmail.com>
|Date: Wed, 21 Feb 2007 16:15:10 +0100
|Subject: Re: Problem with relative path reference
|
|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='.:/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 with
|getcwd(). Also, do you have read access to the above directory?
The answer is yes to both questions. I think there is a setting in Apache
that determines whether you can use ../ as a reference and define its
depth, but I am not sure which one it is.

George

 

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

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