You can also just use the URL to the file + the relative reference. You can even use the realtive reference relative to ur current page. Some don't know this but almost always you can use relative URL operations in Absolute paths for example. http://www.somesite.com/de
This will actually link to the absulte link http://www.soemsite.com/Ta
the ../ moves up a direcotry.
Another Method use the HTML Base tag. Just add an echo anywhere within the HMTL String (it may work before or after the <html> tags but is meant to be stuck in the head/)
The base tag will do everything you want and is wat u need i beleive, Im not sure but i think the above is for makeing Things relative to the php not to the HTML. For Html use the <Base href="newrelativeposition here"> tag
http://www.htmldog.com/ref
Main Topics
Browse All Topics





by: SquinkyPosted on 2004-07-15 at 03:30:02ID: 11557469
The 'make_abs' function on this page should do what you need:
com/forum8 8/334.htm
h
http://www.webmasterworld.
this may also help, there are similar examples in the user notes:
http://www.php.net/realpat