<?php
$p="http://127.0.0.1:8080/website/index.html";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$p);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
//curl_setopt( $ch, CURLOPT_POSTFIELDS, $data );
$return = curl_exec( $ch );
curl_close( $ch );
$regex4="/<div class=\"fraction-dl\".*?>.*?<\/div>/ism";
if(preg_match_all($regex4, $return, $matches)){
echo json_encode($matches);
}else{
echo '0';
}
?>