CURL_SETOPT in PHP. Please help

I want to fake ip in curl_setopt function.

this is my code:

<?php
// create a new cURL resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://getip.com/");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt($ch, CURLPOT_PROXY, "24.26.218.97:37095");

// grab URL and pass it to the browser
curl_exec($ch);

// close cURL resource, and free up system resources
curl_close($ch);
?>

but it do not work for fake ip 24.26.218.97
Please help me fix it. Thanks!
ttnhatanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

waygoodCommented:
Is 24.26.218.97 an anonymous proxy?
0
waygoodCommented:
I tried a script with yours and 200.31.42.3:80 and only mine worked.
I assume yours is not a valid active anonoymous proxy.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ttnhatanAuthor Commented:
24.26.218.97 is sock proxy (SOCKS 5)
I don't want to use the proxy to fake ip. I want use SOCKS 5. Please help me
0
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

ttnhatanAuthor Commented:
"I tried a script with yours and 200.31.42.3:80 and only mine worked.
I assume yours is not a valid active anonoymous proxy."

I tried and it do not work. Please help me try again
0
waygoodCommented:
are you running this on windows?

http://curl.haxx.se/mail/lib-2005-10/0126.html
0
ttnhatanAuthor Commented:
No, I run on Linux. But it don't work.
It appear host's IP. But I don't want, i want use socks to fake ip.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.