PDA

View Full Version : setting the chdir and php include???


glo
11-23-2002, 08:06 AM
: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 ;)