iam using GET command to get the content of a page.When i write the same command on shell prompt it gives correct result but when i use that in PHP file then sometimes its giving correct result but sometimes it gives only half of the content i.e. end-half portion only.
Iam using following command in shell script :-
GET http://www.abc.com/ -H "Referer:http://www.abcd.com/"
and following in PHP file :-
$data=exec('GET http://www.abc.com/ -H "Referer:http://www.abcd.com/"');
echo $data;
Now please tell why this command is not giving full content of the page when im using it in php file.