|
Posted by Berislav Lopac on 08/03/05 17:07
Disco Octopus wrote:
> Hi,
>
> I am trying to upload my site to a new server, and am finding a hard
> time with the include() function.
>
> I am getting this...
>
> Warning: main(includes/site_auth.inc) [function.main]: failed to open
> stream: No such file or directory in
> /usr/home/vhosts/example.com/web/maint/index.php on line 2
>
> line 2 of my file looks like this...
> include ('site_auth.inc');
>
> I have given this in my .htaccess file....
> php_value include_path
> ".:/users/example/includes:/home/vhosts/example.com/includes"
>
> and, the really interesting thing is I am getting a FALSE when I
> execute this....
> file_exists(/users/example/includes/site_auth.inc)
> ...even when I KNOW that the file is there.
>
> The file is *definately* in that location, but I am still getting the
> error.
>
> Any ideas?
Try to check for
file_exists('/usr/home/vhosts/example.com/web/maint/users/example/includes/site_auth.inc')
I have a feeling this might come up true...
Berislav
Navigation:
[Reply to this message]
|