vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Problem with Custom Page (https://vborg.vbsupport.ru/showthread.php?t=113849)

illustrationism 04-23-2006 01:37 PM

Problem with Custom Page
 
Hey,

I read the very well-written tutorial here: https://vborg.vbsupport.ru/showthread.php?t=98009, but I am not having much success...

Pretty much, I have written a custom uploading script here:
www.whatever.com/upload

But the forums are here:
www.whatever.com/forums

The PHP parser stops (and I mean stops, no error or anything) at the line:
Code:

require_once('./global.php');
I wrote a quick script called testdavid.php in the /upload/ dorectory and commented out everything but $_SERVER['PHP_SELF']. It seems that the value of $PHP_SELF is empty, and the location of $_SERVER['PHP_SELF'] is /upload/testdavid.php. So I don't know what to use for chdir(). As of now, I only have access to the upload directory. Is there anything I can do, or that i may be doing wrong?

Thanks,
David

Eikinskjaldi 04-23-2006 05:55 PM

Try using,
include(DIR . '/forums/global.php');

I have used it for my own needs more then once and it has yet to fail me. You may need to set it up to point right, but as far as I recall it should do that automatically with a basic php install. May work, may not.


All times are GMT. The time now is 03:13 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.01028 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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