View Full Version : Creating custom page error
chilllax
03-10-2006, 04:39 PM
I followed Psionic Vision's [How-To] create a custom page and it was pretty simple. But when I tried to create a custom page that wasn't on my servers root directory it would never work. It said that the error was here:
// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
Thanks for any help.
Princeton
03-10-2006, 04:59 PM
most likely it couldn't find the global.php file ... change the file address
chilllax
03-11-2006, 01:57 AM
This is the exact error response that I got
Warning: main(videos/global.php): failed to open stream: No such file or directory in /home/chilllax/public_html/videos/index.php on line 30
Fatal error: main(): Failed opening required 'videos/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chilllax/public_html/videos/index.php on line 30
Marco van Herwaarden
03-11-2006, 06:58 AM
Well is the global.php (ie. is your board) installed in the directory from where you launch your script?
chilllax
03-11-2006, 03:22 PM
I got the global.php file into the same directory as my script and changed to code in my script accordingly, but now when I try and run the script it brings up this error message.
Warning: main(/home/chilllax/public_html/videos/includes/init.php): failed to open stream: No such file or directory in /home/chilllax/public_html/videos/global.php on line 20
Fatal error: main(): Failed opening required '/home/chilllax/public_html/videos/includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/chilllax/public_html/videos/global.php on line 20
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.