Scooby08 Posted February 1, 2009 Share Posted February 1, 2009 Would anybody know how to get larger files to open with file_get_contents? Files over 600kb seem to not work?? Any ideas out there?? Link to comment https://forums.phpfreaks.com/topic/143333-file_get_contents-and-large-files/ Share on other sites More sharing options...
Prismatic Posted February 1, 2009 Share Posted February 1, 2009 600kB should be no problem. What error are you getting? Link to comment https://forums.phpfreaks.com/topic/143333-file_get_contents-and-large-files/#findComment-751759 Share on other sites More sharing options...
Scooby08 Posted February 1, 2009 Author Share Posted February 1, 2009 I'm not showing any errors.. How can I show errors for file_get_contents? Link to comment https://forums.phpfreaks.com/topic/143333-file_get_contents-and-large-files/#findComment-751762 Share on other sites More sharing options...
Scooby08 Posted February 1, 2009 Author Share Posted February 1, 2009 Would it make any difference if the file I was trying to open is a .csv?? Link to comment https://forums.phpfreaks.com/topic/143333-file_get_contents-and-large-files/#findComment-751769 Share on other sites More sharing options...
Prismatic Posted February 1, 2009 Share Posted February 1, 2009 Try putting this at the top of your file set_time_limit(0); And try it again. Link to comment https://forums.phpfreaks.com/topic/143333-file_get_contents-and-large-files/#findComment-751771 Share on other sites More sharing options...
corbin Posted February 1, 2009 Share Posted February 1, 2009 Add ini_set('display_errors', '1'); and error_reporting(E_ALL); to your script. Link to comment https://forums.phpfreaks.com/topic/143333-file_get_contents-and-large-files/#findComment-751812 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.