Apart from wondering why you're wanting to do this... you've set max_execution_time in your php.ini file and restarted apache/nginx/php-fpm? And have you looked in your webserver error logs?
Jan 20, 2016
6
Level 5
Can't echo php string because it's too long?
Hi I've tried asking this on stackoverflow to no avail so I thought I'd try here.
I have a problem on my live server where the script below won't run and just causes the page to hang. If I reduce the number of loops to 2,000,000 it works. So i'm guessing there's some config I need to change. However I've upped everything I can think of to accommodate long running scripts, file uploads, max request size etc and nothing is working.
Any help or suggestions would be greatly appreciated!
$data = '';
for($i = 0; $i < 3000000; $i++) { $data .= 1; }
echo $data;
Please or to participate in this conversation.