Using cURL get webpage


/ Published in: PHP
Save to your folder(s)

Using cURL to get webpage DOM


Copy this code and paste it in your HTML
  1. $curl_handle=curl_init();
  2. curl_setopt($curl_handle,CURLOPT_URL,$webpage_url);
  3. $html = curl_exec($curl_handle);
  4. curl_close($curl_handle);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.