designbai Posted February 28, 2008 Share Posted February 28, 2008 hi all, I am trying to grab a content from a website, i am unable to get it. http://www2.dfm.ae/pages/DailySammary.aspx?smb=AEIBANK $url = 'www2.dfm.ae/pages/DailySammary.aspx?smb=AEIBANK'; $content = file_get_contents($url); echo $content; any help will be highly appreaciated. designbai. Link to comment https://forums.phpfreaks.com/topic/93476-grabing-a-content-problem/ Share on other sites More sharing options...
trq Posted February 28, 2008 Share Posted February 28, 2008 Make sure you have error reporting and dsiplay errors on. <?php error_reporting(E_ALL) ; ini_set('display_errors','1'); ?> What do you get? Link to comment https://forums.phpfreaks.com/topic/93476-grabing-a-content-problem/#findComment-478914 Share on other sites More sharing options...
designbai Posted February 28, 2008 Author Share Posted February 28, 2008 i am getting the following: Warning: file_get_contents(www2.dfm.ae/pages/DailySammary.aspx?smb=AEIBANK) [function.file-get-contents]: failed to open stream: No error in C:\wamp\www\test\dfm.php on line 4 Link to comment https://forums.phpfreaks.com/topic/93476-grabing-a-content-problem/#findComment-478916 Share on other sites More sharing options...
designbai Posted February 28, 2008 Author Share Posted February 28, 2008 i am sorry, i am getting the following: eSense Page Implementation Problem -------------------------------------------------------------------------------- Error: Disabled Cookies More Information: Your browser seems to have the coockies disabled Page Information: This problem is found in the code for the following page/component:pages/DailySammary.aspx -------------------------------------------------------------------------------- eSense Webpage Implementation version 1.0 Link to comment https://forums.phpfreaks.com/topic/93476-grabing-a-content-problem/#findComment-478918 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.