Posted by Hendri Kurniawan on 02/22/07 19:31
Instead of just the file name, use this instead:
require(dirname(__FILE__) . '/../config.php');
That will make sure that the config file is called relative to the page
that includes it.
Try, let us know the result.
Hendri Kurniawan
George wrote:
> 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')
Navigation:
[Reply to this message]
|