I am using this file_get_contents for fetching external website html. but it is returning different output as compare to live one.
ExternalUrl : http://www.target.com/c/baby-baby-bath-bath-safety/-/N-5xtji#?lnk=nav_t_spc_3_inc_1_1
My live code :
http://apptoplay.com/getImageUrl/file_get_contents.php
code
$url="http://www.target.com/c/baby-baby-bath-bath-safety/-/N-5xtji#?lnk=nav_t_spc_3_inc_1_1";
$html = file_get_contents($url);
echo $html;
Edit: Differences are in HTML. both are showing different totally different contents.
you have to tell cURL to accept cookies.
Try this:
More description