Page 1 of 1

curl dynamic url

Posted: Thu Feb 17, 2011 4:44 pm
by tomindo
hi guys I just could not find the answer on forum. I have a url like this http://www.example.com/deal.php?id=367 and my question is : how can i use curl function to get the html and the id value which is 367
thanks

Re: curl dynamic url

Posted: Fri Feb 18, 2011 4:13 pm
by Christopher
You need to set the CURLOPT_RETURNTRANSFER option. Read about the return value of curl_exec():

http://us2.php.net/manual/en/function.curl-exec.php