note 90448 added to function.parse-url

From: Date: Thu, 23 Apr 2009 02:54:58 +0000
Subject: note 90448 added to function.parse-url
Groups: php.notes 
Request: Send a blank email to php-notes+get-153600@lists.php.net to get a copy of this message
careful while use parse_str() function with full url. see: $sLink = "http://localhost/khm/search.php?act=result&q=a"; parse_str($sLink, $vars); print_r($vars); echo $sLink = rawurldecode(http_build_query($vars)); // will output: // Array // ( // [http://localhost/khm/search_php?act] => result // [q] => a // ) // http://localhost/khm/search_php?act=result&q=a // search.php become search_php ---- Server IP: 118.69.205.71 Probable Submitter: 118.69.153.29 ---- Manual Page -- http://www.php.net/manual/en/function.parse-url.php Edit -- https://master.php.net/note/edit/90448 Del: integrated -- https://master.php.net/note/delete/90448/integrated Del: useless -- https://master.php.net/note/delete/90448/useless Del: bad code -- https://master.php.net/note/delete/90448/bad+code Del: spam -- https://master.php.net/note/delete/90448/spam Del: non-english -- https://master.php.net/note/delete/90448/non-english Del: in docs -- https://master.php.net/note/delete/90448/in+docs Del: other reasons-- https://master.php.net/note/delete/90448 Reject -- https://master.php.net/note/reject/90448 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153600) next »