Forum Moderators: coopster

Message Too Old, No Replies

Converting Relative to Absolute URLS

How?

         

raingerpete

12:51 pm on May 8, 2003 (gmt 0)

10+ Year Member



hi,

Does anyone have a script to change relative URLs to absolute ones?

The URL is given within a web page.

But I have realised the $rel_url can be :

"../../some.css"
"dog.css"
"/mars/ish.css"

and its not just a case of apending the url onto $web_page_url .

Birdman

12:54 pm on May 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check out the PHP Bag O Tricks [webmasterworld.com]. Post #2 seems to be close to what you want.