2

I have to fetch content of some urls by using proxies from a list.

All proxies requires authentication (i have username and passwords as well).

Problem is i don't have curl installed on server , so can't use curl.

I tried using sockets but having problem using that.

Any help is appreciated .

1
  • What problem were you having with the sockets? Commented Jul 22, 2010 at 11:36

2 Answers 2

2

Use stream_context_create with the proxy option (see here for details: http://www.php.net/manual/en/context.http.php ). Then you can access the file using the standard functions fopen, file_get_contents .

Sign up to request clarification or add additional context in comments.

Comments

-1

try using this:

$text = file_get_contents('http://www.example.com/');

or

$text = file_get_contents('http://user:[email protected]/');

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.