note 8727 added to parse_url

From: Date: Tue, 26 Sep 2000 05:29:11 +0000
Subject: note 8727 added to parse_url
Groups: php.notes 
Request: Send a blank email to php-notes+get-5379@lists.php.net to get a copy of this message
If parse_url() encounters a mangled URL it can't understand (try something starting with "file:////", it won't fail silently, instead printing a warning- this might not be what you want. I do this: $urlarr = @parse_array($myurl); if ( ! is_array($urlarr) ) { echo "not a url"; } This applies to PHP 4.0.2... http://www.php.net/manual/function.parse-url.php

« previous php.notes (#5379) next »