* Thus wrote Mike Mapsnac ([EMAIL PROTECTED]):
> Hello
> 
> I' m writing php script that will request page and save it locally. The 
> page URL will be parameter (example: 
> http://www.pagetoget.com/thispage.html). How php can request such page and 
> save it locally on the file?

$ch = curl_init();
curl_setopt($ch, CURLOPT_FILE, '/path/to/output');
curl_setopt($ch, CURLOPT_URL, "http://www.pagetoget.com/thispage.html";);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to