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 ? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.