vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Trick to using VB variables on Non-vb pages... (https://vborg.vbsupport.ru/showthread.php?t=47855)

stryka 01-24-2003 11:33 PM

Just a follow-up for the newbies... and a question for the PROS... if you were following the thread... it suggested to move your main files to the root and within an ADMIn folder...

Works great for the PHP files in the root but your sub-folders don't work... cuz of the GLOBAL.php bombing out when it can't find the right paths...

here's the scenario...

Root
- <folder1>
- index.php
- <folder2>
index.php
global.php


both index.php files contain the following:

the root index.php contains
Quote:

<?php require(getenv('DOCUMENT_ROOT').'/global.php')
?>
the root index.php works fine (can echo vb variables) but the index.php within the sub-folder(folder1) does not work and gives me a blank page... and the above environment variable gives you the absolute path...

Unless my syntax is incorrect.. Please let me know what I should be doing different... i have other subfolders that I would have php files that use the global.php... I think i even tried editting the global.php file to include the absolute paths int the file...

Thanx


All times are GMT. The time now is 06:35 AM.

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.01517 seconds
  • Memory Usage 1,712KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete