09-07-2004
4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I install solaris 8. I want to use netconfig command, but it dispear "you haven`t the right",why? Is there somebody can help me? (3 Replies)
Discussion started by: yycokr
3 Replies
2. UNIX for Dummies Questions & Answers
How do I cahnge my plan under my profile? (5 Replies)
Discussion started by: D3adRabbit
5 Replies
3. Shell Programming and Scripting
linux fedora core2
:) i am trying to write a script to clear, date, pwd and tty a linux termnal or konsole.. when I test the tty against $0 i am, getting a premission denied on the terminal that I am trying to printf to.. I tried using an awk command, test condition, an if then fi clause, but... (6 Replies)
Discussion started by: moxxx68
6 Replies
4. UNIX for Dummies Questions & Answers
I have a file containing about 100 lines, each with a ';' the end.
Each line is a string represented in UTF-16 hex and they vary in length.
I am thinking I ought to be able to use (g)awk to insert ',00,' after each two characters on each line in the file so that in the end, I have a... (3 Replies)
Discussion started by: gusbrown
3 Replies
LEARN ABOUT PHP
curl_unescape
CURL_UNESCAPE(3) 1 CURL_UNESCAPE(3)
curl_unescape - Decodes the given URL encoded string
SYNOPSIS
string curl_unescape (resource $ch, string $str)
DESCRIPTION
This function decodes the given URL encoded string.
PARAMETERS
o $ch
-A cURL handle returned by curl_init(3).
o $str
- The URL encoded string to be decoded.
RETURN VALUES
Returns decoded string or FALSE on failure.
EXAMPLES
Example #1
curl_escape(3) example
<?php
// Create a curl handle
$ch = curl_init('http://example.com/redirect.php');
// Send HTTP request and follow redirections
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_exec($ch);
// Get the last effective URL
$effective_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
// ie. "http://example.com/show_location.php?loc=M%C3%BCnchen"
// Decode the URL
$effective_url_decoded = curl_unescape($ch, $effective_url);
// "http://example.com/show_location.php?loc=Munchen"
// Close the handle
curl_close($ch);
?>
NOTES
Note
curl_unescape(3) does not decode plus symbols (+) into spaces. urldecode(3) does.
SEE ALSO
curl_escape(3), urlencode(3), urldecode(3), rawurlencode(3), rawurldecode(3).
PHP Documentation Group CURL_UNESCAPE(3)