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 296 views
2 answers 1,058 views
1 answer 200 views
200 views asked Jul 17, 2017 by avibootz
2 answers 254 views
1 answer 246 views
...