* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
> * 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');

sorry that should be:
  $fp = fopen('/path/to/output', 'w');
  curl_setopt($ch, CURLOPT_FILE, $fp );


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