You are here: Re: problem with include() « PHP Programming Language « IT news, forums, messages
Re: problem with include()

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]


Удаленная работа для программистов  •  Как заработать на 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

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