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 Alvaro G. Vicario on 11/10/06 11:34

*** tom escribió/wrote (12 Dec 2005 08:11:29 -0800):
> (a)detect the relative URLs with a REgEx

I'd say a simple strpos() should do this.


> (b)add the base href to the start of these relative URLs

Could you provide some sample data? I guess that if it was something as
simple as concatenating you would not be asking :)

--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--

 

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

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