vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   setting the chdir and php include??? (https://vborg.vbsupport.ru/showthread.php?t=46022)

glo 11-23-2002 08:06 AM

setting the chdir and php include???
 
:confused:

Hi, I am stuck trying to set up my "chdir" and "php include"

I am trying to set up a hack so that the hack "webwelcome" will work on a non VB page.

the problem is that the forums are situated at www.glo-racing.com/forums and the webwelcome hack is situated at www.glo-racing.com/v3/test1.php

the webwelcome appears to display properly but the links dont match up because they are in a directory situated 1 above. I dont know how to amend this within php?

Any help is greatly appreciated!

Admin 11-23-2002 08:16 AM

If the HTML links are wrong, it's not a PHP problem. You need to go through the template that makes up this page:
http://www.glo-racing.com/v3/test1.php
And make sure all links are absolute (i.e http://www.site.com/forums/member.php) and NOT relative (i.e ../forums/member.php).

glo 11-23-2002 09:38 AM

thanks Firefly, i will try to look use absolute paths from now on!

Does that lengthen the loading time or increase load on the server by using the absolute path?

Would it be possible for you to have a look at www.glo-racing.com/v3/main.html and view the source code as this is the code for www.glo-racing.com/v3/main.php which parses the code.

I dont think its a html problem here?

glo 02-16-2003 06:59 AM

Does using the absolute path lengthen the loading time or increase load on the server?

Sebastian 02-16-2003 10:06 PM

little paranoid i see? LoL .. no it doesn't .. if it did i probably wouldn't be using php ;)


All times are GMT. The time now is 01:01 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.01060 seconds
  • Memory Usage 1,713KB
  • 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)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