Jump to content

Diamond7

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Diamond7

  1. Hi I need a script to hide IP address with proxy and read a web page $username="myuser"; $password="mypass"; $url = "http://www.mysite.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_PROXY, '173.234.11.134'); curl_setopt($ch, CURLOPT_PROXYPORT,'80'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); $output = curl_exec($ch); $info = curl_getinfo($ch); echo $output; curl_close($ch); The script doesn't work, it doesn't show me the page output. Any solution?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.