Curl output
| From: | gbhumphrey | Date: | Thu, 01 Oct 2009 23:37:14 +0000 |
| Subject: | Curl output | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-298453@lists.php.net to get a copy of this message | ||
Hi, I am doing a basical curl call and can get the webpage I want. However
when it prints to the screen, it only prints the text, not css or any
javascript calls that run on page load.
Is there a way to make it do that?
thanks
using a basic curl call
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,'http://example.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,0); // return into a variable
curl_exec($curl_handle);
--
View this message in context: http://www.nabble.com/Curl-output-tp25708385p25708385.html
Sent from the PHP - General mailing list archive at Nabble.com.