Forum Discussion
sjssoft
13 years agoVisitor
I have successfully done this:
Following is the php code:
If you need my help, Please visit me @ http://sjssoft.com
😄 😄 😄 😄
Following is the php code:
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://127.0.0.1:8000/7.html"); // Replace your IP with 127.0.0.1 and port number with 8000
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2');
$shoutcast = curl_exec($curl);
preg_match("/<body.*>(.*)<\/body>/smU",$shoutcast, $match);
echo $match[1];
?>
If you need my help, Please visit me @ http://sjssoft.com
😄 😄 😄 😄