Reply to Re: trouble with include files

Your name:

Reply:


Posted by Marshall on 10/18/57 11:57

Try to set the actual directory to a variable. Something like:

$dir = getcwd();

and then use:

require($dir.'/hello.php');

Something like this would work.

Ah, by the way, don't let the extension be '.inc', put it with '.php'
in the end, if someone access your file in the browser, the browser
will display it as plain text letting everyone see your script.

[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

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