note 39038 deleted from function.parse-url by nlopess

From: Date: Thu, 15 Jan 2004 14:35:00 +0000
Subject: note 39038 deleted from function.parse-url by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63613@lists.php.net to get a copy of this message
Note Submitter: Adam C ---- Trying to parse the anchor is actually pretty useless in practice: <?php parse_url("http://www.example.org/path?arg=value#anchor"); ?> Generally, the browser does not present the anchor part of the URI to the server, so... a link to http://www.example.org/path?arg=value#anchor will only bee seen by PHP as http://www.example.org/path?arg=value the '#anchor' is usually kept by the browser (as it is not part of the URI, as far as the server is concerned) So, while() you may find some browser out there that actually DOES submit this part of the URI to the server (doubtful, as it could cause 404 errors and the like), it's certainly not common place, and should not be relied upon

« previous php.notes (#63613) next »