0

I want make a check against the IIS upload limit of the server my PHP script is running in the same manner as ini_get('upload_max_filesize') works for the PHP settings.

I'm thinking about parsing the web.config file to get the value of maxAllowedContentLength, but I was wondering if there is a standard way to ask the webserver directly.

Loupax
  • 4,728
  • 6
  • 41
  • 68

1 Answers1

1

There is one link telling a bit about other configuration setting you should read Which gets priority, maxRequestLength or maxAllowedContentLength? And i dont think there is other way as to read the ini file (php have simple ini file reader). I could propose using some library that splits files like plupload - it can split your files to smaller pieces, upload each piece and then recombine it into one big file bypassing the server maximum upload file / body limits.

Community
  • 1
  • 1
Seti
  • 2,169
  • 16
  • 26
  • 1
    You can try `phpinfo();` if the configuration of iis is given to php it will be there - if not i would read the file. – Seti Apr 25 '14 at 14:00