vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Creating custom page error (https://vborg.vbsupport.ru/showthread.php?t=110016)

chilllax 03-10-2006 04:39 PM

Creating custom page error
 
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:

PHP Code:

// ########################## 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.

PHP Code:

Warningmain(/home/chilllax/public_html/videos/includes/init.php): failed to open streamNo 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 



All times are GMT. The time now is 08:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01526 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete