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 283 views
2 answers 1,035 views
1 answer 195 views
195 views asked Jul 17, 2017 by avibootz
2 answers 244 views
1 answer 239 views
...