Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Getting results of second page?

$
0
0
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$page = curl_exec($ch);
As you can see, I want CURL to follow any redirects a website throws at me. And I want $page to contain the HTML of the last page loaded; however, $page seems to give me the value of just the very first page and none of the following redirects. Is there anyway I can go about this differently to solve my problem?

Viewing all articles
Browse latest Browse all 13200

Trending Articles