ted_chou12 Posted September 9, 2008 Share Posted September 9, 2008 I have a function file("text.txt"); and this results the rest of the page to stop loading because the file is too big, is there any way that makes the php load longer for a big txt file? Thanks, Ted. Link to comment https://forums.phpfreaks.com/topic/123370-text-file-too-big-to-load/ Share on other sites More sharing options...
genericnumber1 Posted September 9, 2008 Share Posted September 9, 2008 change max_execution_time in your php.ini or flag it in an htaccess file. Link to comment https://forums.phpfreaks.com/topic/123370-text-file-too-big-to-load/#findComment-637228 Share on other sites More sharing options...
discomatt Posted September 9, 2008 Share Posted September 9, 2008 You probably hit memory limit before you hit execution time. What kinda errors do you get? Link to comment https://forums.phpfreaks.com/topic/123370-text-file-too-big-to-load/#findComment-637230 Share on other sites More sharing options...
ted_chou12 Posted September 9, 2008 Author Share Posted September 9, 2008 Doesn't seem to show any errors, but the page just doesn't load. stops at file("text.txt"); How do u change the max_execution_time in htaccess file? Thanks again Ted Link to comment https://forums.phpfreaks.com/topic/123370-text-file-too-big-to-load/#findComment-637243 Share on other sites More sharing options...
The Little Guy Posted September 9, 2008 Share Posted September 9, 2008 Place this at the beginning of your file PHP file.: set_time_limit(0); Link to comment https://forums.phpfreaks.com/topic/123370-text-file-too-big-to-load/#findComment-637276 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.