Reply to Re: [PHP] help out a noob w/ include & switch?

Your name:

Reply:


Posted by "Thorsten Suckow-Homberg" on 09/21/05 02:54

>[...]

Try the following:

1) include() will only trigger a warning if the requested file is not within
the include path. Thus, to make sure the file is found, you should use
"require()" which triggers a fatal error and prevends the script from being
executed if the given filename as the parameter cannot be found. This will
give you probably a hint if there's something wrong with the include-path

2) Another suggestion would be to prepend "./" to the file you try to
include:
instead of
include("file.php");
you should use
include("./file.php");

"./" indicates that php should lookup the requested file in the directory
the php-file resists in which called the include()-function.

[Back to original 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

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