Navigation :

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




Site Sponsors :

Bookmark :

Links :

programmershelp
wwwstores
dropshippers

Downloads :

Misc :

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


download a web page to a file

download a web page to a file using cURL

<?php

$site = curl_init ("http://www.google.com/");
$fp = fopen ("google.txt", "w");

curl_setopt ($site, CURLOPT_FILE, $fp);
curl_setopt ($site, CURLOPT_HEADER, 0);

curl_exec ($site);
curl_close ($site);
fclose ($fp);
?>