I am parsing webpage data using ` PHP function.
But problem with this is it gives error when url starts from
www.`
( ! ) Warning: file_get_contents(www.iiit.ac.in): failed to open stream: No such file or directory in F:\wamp\www\test.php on line 63
Here is the demo for this code: Link to DEMO
<?php
$url= 'www.facebook.com';
$data = file_get_contents($url);
echo $data;
echo "<br/>Using http";
$url= 'https://www.facebook.com';
$data = file_get_contents($url);
echo $data;
?>