View Full Version : Including a File Help
elefekt
03-09-2004, 09:47 PM
I get this error
Warning: Unknown(): stream does not support seeking in /home/game/public_html/global.php(386) : eval()'d code on line 8
When i try to include a file with the phpinclude_start template and putting the variable in the header template
What code are you using to include the file?
elefekt
03-10-2004, 02:12 AM
ob_start();
require("http://evirant.com/networkmenu/networkmenu.php");
$menu = ob_get_contents();
ob_end_clean();
in the phpinclude_start template
and
$menu
in the header template
see it here: http://forum4games.com
I use the same method at http://programforum.com and it works there.
Any ideas?
Thanks.
It is possible that your installation of php dose not support including from other sites. I would upload networkmenu.php to the vbulletin root directory then use this code:
require_once('/path/to/vb/networkmenu.php');
elefekt
03-10-2004, 02:55 AM
thanks I think ill just HTML it in, jw where do you go to check if it is supported or not?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.