Yes, there are differences - the browser, as I would say, sends a lot of additional HTTP headers ; and those sent by both probably don't have the same meaning.
, , , HTTP- Accept.
, file_get_contents, :
$opts = array('http' =>
array(
'method' => 'GET',
'header' => array(
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*\/*;q=0.8
'
),
)
);
$context = stream_context_create($opts);
$f = file_get_contents("http://mobile.mybustracker.co.uk/mobile.php?searchMode=2", false, $context);
echo $f;
HTML- .
:
User-Agent, ,Accept - , Firefox, Firefox, file_get_contents.
: