0

Windows Server 2008 R2 Datacenter IIS 6.1

We're experiencing issues trying to upload a file larger than 1.5mb on our PHP web application. PHP upload limit is set to 20mb and verified.

I've been looking for solutions but none of them exist on this particular version of Windows and IIS 6.1, eg; like modifying the 'metabase.xml' file (it cannot be found on the server). Does anyone have any suggestions please?

2
  • What 'issues' are you experiencing? What happens when it fails? Error message?
    – techie007
    Feb 4, 2010 at 4:34
  • Issue: PHP doesn't get a file from IIS Error: Error - File Too Big Feb 9, 2010 at 2:03

2 Answers 2

1

I'm thinking perhaps you're running into a time-out issue waiting for the upload to finish, and not really a size limitation.

Here's some info from the PHP folks that may be candidates for checking:

"max_execution_time" integer

This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server. The default setting is 30. When running PHP from the command line the default setting is 0.

The maximum execution time is not affected by system calls, stream operations etc. Please see the "set_time_limit()" function for more details.

Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.

"max_input_time" integer

This sets the maximum time in seconds a script is allowed to parse input data, like POST, GET and file uploads.

Note: The set_time_limit() function and the configuration directive max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(), stream operations, database queries, etc. is not included when determining the maximum time that the script has been running. This is not true on Windows where the measured time is real.

Additionally here's some info on checking/setting CGI Timeout in IIS5 and 6.

HTH

3
  • It's an Intranet application so there are no timeout issues as the next page is instant. Feb 6, 2010 at 9:55
  • I'll point back to my comment on your original question -- "What 'issues' are you experiencing? What happens when it fails? Error message?"
    – techie007
    Feb 6, 2010 at 20:01
  • Issue: PHP doesn't get a file from IIS Error: Error - File Too Big Feb 9, 2010 at 2:02
0

You might want to take a look at this post:

https://stackoverflow.com/questions/1176484/open-source-file-upload-with-no-timeout-on-iis6-with-asp-asp-net-2-0-or-php5

1
  • Thanks for the link but it's not a timeout issue, it's a file size issue. Feb 9, 2010 at 2:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .