note 70820 added to function.parse-url

From: Date: Mon, 30 Oct 2006 06:24:35 +0000
Subject: note 70820 added to function.parse-url
Groups: php.notes 
Request: Send a blank email to php-notes+get-119242@lists.php.net to get a copy of this message
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 -- http://www.php.net/manual/en/function.parse-url.php Edit -- https://master.php.net/note/edit/70820 Del: integrated -- https://master.php.net/note/delete/70820/integrated Del: useless -- https://master.php.net/note/delete/70820/useless Del: bad code -- https://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 -- https://master.php.net/note/delete/70820/in+docs Del: other reasons-- https://master.php.net/note/delete/70820 Reject -- https://master.php.net/note/reject/70820 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119242) next »