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

Posted by Disco Octopus on 08/03/05 16:22

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?

Thanks

--
a beef jerky site http://www.choicebeefjerky.com.au
not a beef jerky site http://mycoolwheels.com/vote.cmks
eat beef jerky

 

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

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