Judging by the title of your question, I'd say PHP's set_time_limit
would be your solution. However, after reading your question entirely, it also could be a memory limit set in place inside of php.ini
or a hard limit that the server has.
You could try using fopen()
and fread()
instead, such as:
$f = fopen("yourfile.txt", "r");
$s = "";
while (!feof($f)) {
$s .= fread($f, 4096);
}
fclose($f);
// do something with the file contents inside of $s
You could also expand upon this example so that it echoes out the file as it reads it in.
Hope that helps.