Hi,
I wrote this program with curl
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_URL, $pageurl );
$html = curl_exec ( $ch );
curl_close($ch);
echo $html;
This is equivalent with echo file_get_contents($pageurl);
Is there a way to do this with socket command? Anyone knows how to do the equivalent using socket command?