CURL_SETOPT in PHP. Please help

I want to fake ip in curl_setopt function.

this is my code:

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

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($ch, CURLPOT_PROXY, "");

// grab URL and pass it to the browser

// close cURL resource, and free up system resources

but it do not work for fake ip
Please help me fix it. Thanks!
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.

Is an anonymous proxy?
I tried a script with yours and and only mine worked.
I assume yours is not a valid active anonoymous proxy.

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: is sock proxy (SOCKS 5)
I don't want to use the proxy to fake ip. I want use SOCKS 5. Please help me
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 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
are you running this on windows?
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.
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

From novice to tech pro — start learning today.