tamir_malas Posted August 29, 2007 Share Posted August 29, 2007 Hi, iam trying to use file_get_contents but it returns false, why? i tried to write this line before file_get_contents ini_set ('allow_url_fopen', 1); but nothing happened. can some one help me? Quote Link to comment https://forums.phpfreaks.com/topic/67206-file_get_contents-problem/ Share on other sites More sharing options...
Ken2k7 Posted August 29, 2007 Share Posted August 29, 2007 Could you post your code up? Quote Link to comment https://forums.phpfreaks.com/topic/67206-file_get_contents-problem/#findComment-337072 Share on other sites More sharing options...
vijayfreaks Posted August 29, 2007 Share Posted August 29, 2007 hi.. before that you have to check whether file is exist or not? and if then check for read permission of it.. if it's ok? Regards, Vijay Quote Link to comment https://forums.phpfreaks.com/topic/67206-file_get_contents-problem/#findComment-337083 Share on other sites More sharing options...
tamir_malas Posted August 29, 2007 Author Share Posted August 29, 2007 iam using the code on the phpfreaks site, url http://www.phpfreaks.com/quickcode/RSS-reader-using-Regular-Expressions/626.php the code is running perfect on the localhost, but it is not running when i upload it to server. what should i do? Quote Link to comment https://forums.phpfreaks.com/topic/67206-file_get_contents-problem/#findComment-337084 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.