note 10978 deleted from function.rawurlencode by jimw

From: Date: Thu, 20 Dec 2001 21:25:01 +0000
Subject: note 10978 deleted from function.rawurlencode by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23437@lists.php.net to get a copy of this message
The code in Example 2 won't work, because the function replaces all non-alphanumeric characters, i.e. 'sales and marketing/Miami' will be encoded to 'sales%20and%20marketing%2FMiami', where %20 is fine, but %2F makes it unusable. I used str_replace(" ","%20",$path) instead to allow " " in path.

« previous php.notes (#23437) next »