...

View Full Version : problem with require



masterofollies
01-15-2010, 06:19 PM
In my theme folder I am using a classic theme. It has


require("SSI.php");

Which is fine for the forum, however when I installed a forum mod for an ajaxchat, the path is wrong for it. The correct path for the chat is,


require("../SSI.php");

If I do that, the forum crashes, if I do the other, the chat crashes. I tried using include for both, or require for one and include for the other, but nothing works.

JAY6390
01-15-2010, 06:25 PM
put
require('/full/path/to/SSI.php');The full path should be used

masterofollies
01-15-2010, 06:41 PM
I got this error.


Fatal error: require() [function.require]: Failed opening required '/full/path/to/SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fayt/public_html/Themes/classic/index.template.php on line 2

JAY6390
01-15-2010, 06:43 PM
well obviously you need to change the path from /full/path to your files ACTUAL path :rolleyes:

masterofollies
01-15-2010, 06:52 PM
Awesome, works great. Thank you



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum