News Feed
Jobs Feed
Sections




News Archive
Sameer Borate's Blog:
Easy manipulation of URLs
November 10, 2009 @ 12:48:49

On his codediesel.com blog today Sameer Borate has a quick post looking at URL manipulation with the help of the Net_URL2 PEAR package.

Whether you are dynamically creating urls or changing existing ones, manipulation of urls is a frequent coding requirement during development; doing the same on short urls is easy, but quickly becomes complex for urls which have larger query parameters.

He shows how to use the package to parse the current URL into its respective parts (host, port, path, etc) and how to automatically change certain parameters in the current URL and push the updated version back out the other side. There's also a bit there at the end on normalizing URLs.

0 comments voice your opinion now!
url manipulation pear neturl2 package


blog comments powered by Disqus

Similar Posts

Sameer Borate's Blog: Grabbing the referrer search engine keywords for a site

RegDeveloper.co.uk: Build your PDF and Excel reports with PHP

Travis Swicegood's Blog: Some new PEAR channel code

KillerSoft.com: SimpleTest 1.0.0 on Pearified.com

PHPBuilder.com: Foundations of Pear: Authentication


Community Events











Don't see your event here?
Let us know!


phpunit community conference symfony2 release database language zendframework2 podcast usergroup rest interview testing introduction series opinion functional google framework development

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework