; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 60
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30
; Maximum amount of memory a script may consume
; http://php.net/memory-limit
memory_limit = 128M
; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size = 8M
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 32M
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20
2条答案
按热度按时间eimct9ow1#
您正在上传5个文件。您的服务器和响应必须等待上传完成。这将取决于文件的大小和连接速度。
在localhost中,文件只是被复制,这要快得多。
你可以做的是实现一些自动的块上传,它可以在你选择文件的时候上传文件,并在你按下提交按钮之前显示一些进度条。
j0pj023g2#
根据与以下参数相关的数据的大小/类型,可能会出现许多问题。
请提供更多信息:
在两种环境中运行
phpinfo()
,并发布以下参数的结果正如克里斯已经指出的,本地主机是同一台机器,所以数据上传几乎是即时的,因为所有的网络延迟都被忽略了。