0

XAMPP を実行し、作成した iPhone アプリにサービスを提供する VPS があります。

ASIHTTPRequestを使用してファイルをサーバーにアップロードしました。

アプリはサーバーにファイルを送信し、サーバーは 2MB 未満のファイルのみを受け入れます。

また、Wireshark で確認したところ、次の警告が見つかりました。

PHP 致命的なエラー: 2 行目の c:/xxx/index.php で最大実行時間が 60 秒を超えました

2行目に書いた:session_start();

私の理論では、それらは大きなファイルがサーバーに入るのをブロックする2つのものです:

  1. ある種のファイルサイズ制限
  2. アクションあたりのある種の制限時間

私は本当にこれについて助けが必要です。ありがとう!

4

4 に答える 4

2

php.iniXAMPPを実行すると、ディレクトリにあるファイルの設定を確認します*root*/php/

#Make sure file uploads are turned on
file_uploads = On

#Change the max upload size to 100Mb
upload_max_filesize = 100M

#Change the max post size to 100Mb
post_max_size = 100M

#Change the max upload time to 900seconds
max_input_time = 900

#This is where you are seeing your problem as the script execution is timing out.
#Change the max execution time of the script to 900 seconds
max_execution_time = 900
于 2013-02-06T16:43:35.163 に答える
2

php.iniファイル内の次の行を確認してください。

upload_max_filesize = 2M
max_execution_time = 300

後でサーバーを再起動する必要がある場合があります。

于 2013-02-06T16:44:38.843 に答える