Panjabel Posted August 16, 2008 Share Posted August 16, 2008 $page = file_get_contents("http://mama-mia.com"); print $page; the problem is, sometimes it prints the page, if i refresh the page, sometimes it prints some times doesn't anyone know why sometimes it doesn't print ? Link to comment https://forums.phpfreaks.com/topic/119992-file_get_contents-doesnt-work-well/ Share on other sites More sharing options...
ignace Posted August 16, 2008 Share Posted August 16, 2008 try file_get_contents("http://mama-mia.com/index.php"); make sure your the allow_url_fopen directive is correctly set Link to comment https://forums.phpfreaks.com/topic/119992-file_get_contents-doesnt-work-well/#findComment-618086 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.