|
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]
|