How to read a web page into a text file with cURL in PHP

1 Answer

0 votes
$ch = curl_init("http://www.bootznotes.com/");
$fp = fopen("bootznotes_com.html", "w");

curl_setopt($ch, CURLOPT_FILE, $fp);

curl_exec($ch);
curl_close($ch);
fclose($fp)


answered Aug 7, 2014 by avibootz
edited May 31, 2016 by avibootz

Related questions

1 answer 299 views
2 answers 1,067 views
1 answer 206 views
206 views asked Jul 17, 2017 by avibootz
2 answers 258 views
1 answer 252 views
...