note 1282 deleted from URL functions by ronabop
| From: | ronabop@php.net | Date: | Sun, 20 Aug 2000 11:10:24 +0000 |
| Subject: | note 1282 deleted from URL functions by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2728@lists.php.net to get a copy of this message | ||
the functions rawurlencode() and rawurldecode() should also be included here.
rawurlencode() makes a path http compatible (i.e. replaces a " " with a %20 and so on).
rawurldecode() does the reverse.
ex.
$path = rawurlencode("directory with spaces");
echo $path;
gives you:
directory%20with%20spaces
urlencode() alows you to pass variables in the url.
ex.
$path = urlencode("variable i want to pass to next page");
echo $path;
gives you:
variable+i+want+to+pas+to+next+page
-enjoy