note 103669 deleted from function.http-build-url by thiago
| From: | thiago@php.net | Date: | Wed, 27 Apr 2011 14:43:04 +0000 |
| Subject: | note 103669 deleted from function.http-build-url by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179194@lists.php.net to get a copy of this message | ||
Note Submitter: 0cool.f
----
http://pastebin.com/sgkj00Ex
Here I have copy/pasted the code made by "tycoonmaster at gmail dot com"
For my scope have used only this part of code:
return
((isset($parse_url['scheme'])) ? $parse_url['scheme'] . '://' :
'')
.((isset($parse_url['user'])) ? $parse_url['user'] .
((isset($parse_url['pass'])) ? ':' . $parse_url['pass'] :
'') .'@' : '')
.((isset($parse_url['host'])) ? $parse_url['host'] : '')
.((isset($parse_url['port'])) ? ':' . $parse_url['port'] :
'')
.((isset($parse_url['path'])) ? $parse_url['path'] : '')
.((isset($parse_url['query'])) ? '?' . $parse_url['query'] :
'')
.((isset($parse_url['fragment'])) ? '#' . $parse_url['fragment'] :
'')
;
Thanks!