martynball
02-23-2010, 11:00 PM
I having problems linking my pages... I was hoping there was a script someone know I can use...
If I link to a page using the FULL url, it does not work... well includes don't anyway.
http://martynleeball.x10hosting.com/website/includes/menu.php
http://martynleeball.x10hosting.com/website/folder1/file1.php
http://martynleeball.x10hosting.com/website/index.php
^ Does not work...
/website/includes/menu.php
/website/folder1/file1.php
/website/index.php
^ Does not work...
includes/menu.php
folder1/file1.php
index.php
^ Does work... But have to use ../ to go back directories which can be anoying to type in all files as ../../ may be needed.
if you get what I mean...
If I link to a page using the FULL url, it does not work... well includes don't anyway.
http://martynleeball.x10hosting.com/website/includes/menu.php
http://martynleeball.x10hosting.com/website/folder1/file1.php
http://martynleeball.x10hosting.com/website/index.php
^ Does not work...
/website/includes/menu.php
/website/folder1/file1.php
/website/index.php
^ Does not work...
includes/menu.php
folder1/file1.php
index.php
^ Does work... But have to use ../ to go back directories which can be anoying to type in all files as ../../ may be needed.
if you get what I mean...