note 6686 deleted from parse_url by ronabop

From: Date: Sat, 26 Aug 2000 07:01:24 +0000
Subject: note 6686 deleted from parse_url by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3397@lists.php.net to get a copy of this message
I think it would be nice if there was an opposite of this function -- one that, if given the parts, would make the URL for you. So, you could use:<br> <br> $URLData = parse_url("http://www.site.com/file.html");<br> $URLData['path'] = "different.html";<br> $NewURL = unparse_url($URLData);<br> <br> This would make things easier for following links and whatever with PHP.

« previous php.notes (#3397) next »