You are here: Re: Func to Turn Relative URLs into Abs URLs « PHP Programming Language « IT news, forums, messages
Re: Func to Turn Relative URLs into Abs URLs

Posted by John Dunlop on 10/03/98 11:35

tom wrote:

> i desperately need a function that will transform relative URLs to
> absolute URLs in the SRC part of <img> tags.

RFC3986 describes the definitive algorithm for resolving relative
references, given a base URI, and how to, in general, establish that base
URI.

There's nothing to stop you from writing your own algorithm or making
use of someone else's, so long as it measures up. If you do decide to
write one, here's some examples to test with:

http://www.w3.org/2004/04/uri-rel-test.html

--
Jock

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация