curl dynamic url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tomindo
Forum Newbie
Posts: 13
Joined: Sun Mar 21, 2010 1:22 am

curl dynamic url

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: curl dynamic url

Post 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
(#10850)
Post Reply