Reputation:
I'm downloading HTML table from remote server, with file_get_contents which get around 25mb. But the server start loading the page and then respond with error 404. I have checked many times and html page is accessible without problems. I have done some test with other pages on the same server and they are working but the size of them is much smaller, around 3mb.
In php.ini file max_file_size is set to 128mb, i tried with 256mb but no changes.
Upvotes: 0
Views: 267
Reputation:
Solved, it was limited by nginx. I changed fastcgi_read_timeout to 300;
Upvotes: 0
Reputation: 1534
One possibility might be that your php is hitting the max_execution_time
Please check this in order to manipulate this variable
You can set this up in your php.ini file also ( depending on how you host your script )
Also check your apache error log and see what can cause this.
Are you sure it's 404 and not 500 internal error ?
Upvotes: 1