Possible Duplicate:
How to scrape a javascript site using PHP, CURL
I have a webpage stored on server and I want to extract the data from that web page, which have class I want to extract using CURL in php.
How can I achieve that ?
Update: Mycode..
$ch = curl_init() or die('cURL not available');
curl_setopt($ch, CURLOPT_URL, 'xxxxxxxxxx.php');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $options);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //to suppress the curl output
$html = curl_exec($ch);
curl_close($ch);
Solved
For the solution I have used Simple DOM PARSER PHP. Thanks to the people who helped.
Regards