|
Posted by shimmyshack on 02/22/07 21:48
On 22 Feb, 14:02, George <m...@me.com> wrote:
> On Wed, 21 Feb 2007 Lekeas GK wrote...
>
> |From: Rik <luiheidsgoe...@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 <m...@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
i think its a php setting
safe_mode_include_dir =
is safemode on for some reason?
Navigation:
[Reply to this message]
|