Skip to content

Commit

Permalink
Create fetch-ext.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-arif authored Dec 4, 2017
1 parent 0ac757e commit 235490e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fetch-ext.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function getter($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}

echo getter('http://yourdomain.com/waktu-solat.php');

0 comments on commit 235490e

Please sign in to comment.