The example I gave needs a slight correction.
<?php
....
## PHP 5
if(version_compare(phpversion(), '5.1.2', 'ge'))
return parse_url($url, $component);
....
?>
is the correct condition. Previously it wont work if your on
PHP 5 to 5.1.1 since the changes to parse_url() were
implemented in 5.1.2+
----
Server IP: 203.202.10.60
Probable Submitter: 60.226.121.48
----
Manual Page -- h
ttp://www.php.net/manual/en/function.parse-url.php
Edit -- https://master
.php.net/note/edit/70820
Del: integrated -- h
ttps://master.php.net/note/delete/70820/integrated
Del: useless -- http
s://master.php.net/note/delete/70820/useless
Del: bad code -- htt
ps://master.php.net/note/delete/70820/bad+code
Del: spam -- https:/
/master.php.net/note/delete/70820/spam
Del: non-english --
https://master.php.net/note/delete/70820/non-english
Del: in docs -- http
s://master.php.net/note/delete/70820/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/70820
Reject -- https://mast
er.php.net/note/reject/70820
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|