开发者

FTP File upload timeout

开发者 https://www.devze.com 2023-02-20 22:50 出处:网络
My filemanaging script keeps timing out on files greater than ~4 MB. I am on shared hosting but have access to the php.ini file (though editing it does not seem to make a difference).

My filemanaging script keeps timing out on files greater than ~4 MB.

I am on shared hosting but have access to the php.ini file (though editing it does not seem to make a difference).

The php.ini file has been updated to take 100M (the goal max upload size), but is still reading as 8M via:

ini_get('upload_max_filesize')

I have a php.ini file in the root directory of the site with t开发者_JAVA百科hese settings:

upload_max_filesize = 104857600
post_max_size = 124857600
max_input_time = 480
max_execution_time = 480
memory_limit = 144857600

My host (godaddy) says they cannot restart the server (shared) and I should not need to in the first place, just upload the ini file. However none of my attempts have been able to resolve the problem.

I using PHP FTP functions. I am connecting, and files < ~5 MB upload with no trouble, but any larger than that and the page sits there for a few minutes (8 maybe? max_execution_time is set to 8 minutes) before the page changes to the upload.php script with a white page. No error messages, nothing.

Any help?


you can check if your new ini has been loaded with phpinfo(). If not, then you have found your problem.


In my experience, I've only seen upload_max_filesize values of 10M format. Not 104857600 unlabeled if that makes sense. Also, I believe you do have to restart apache after you change the ini file.

0

精彩评论

暂无评论...
验证码 换一张
取 消