07-30-2008, 03:36 AM
|
#1 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
|
curl - help
im using wamp in php.ini this is what i got
Code:
extension=php_curl.dll
so there is no semicologn in front of that line in php.ini
the code im testing is
Code:
<?php
$ch = curl_init('http://www.google.com'); // the target
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return the page
$result = curl_exec($ch); // executing the cURL
curl_close($ch); // Closing connection
echo $result;
?>
when i run the page nothing shows on the screen. what am i missing here?
__________________
no signature set
|
|
|
|