IIS 7 2008 PHP uploads failing over ~8MB

I'm having problems uploading large files on this server with a php script. I'm sure I've done all the necessary changes to the PHP.ini file to allow larger uploads. I'm sure it is a file size error (compared to time out) as connecting directly to the server to run the script and uploading a 10MB file gives and instant failure. Smaller files are fine.

Relevant php.ini information is below as reported by doing a phpinfo() at the base of my script file.

Directive Local Value Master Value
file_uploads      On      On
max_execution_time 1200      60
max_file_uploads    20       20
memory_limit 256M 256M
max_input_time 1200 1200
post_max_size 256M 256M
upload_max_filesize 262144000 262144000      (yes this is in bytes)
upload_tmp_dir C:\Windows\Temp C:\Windows\Temp


Now all this is run on an IIS7 2008 server which I'm not much experienced with however like I said small files are all OK. I have flush /recycled the Application pool attached to the server and restarted the website server several times to ensure php.ini changes are picked up - and they are shown in the ini on the script page.

I did find some info on time-outs for the server and CGI in IIS7 and the fact it has a silent default of 30MB for file (a size I'm not even getting to). However I have also made the following changes/additions to the web.config.

<requestFiltering>
              <requestLimits maxAllowedContentLength="2000000000" />
</requestFiltering>
<system.web>
      <httpRuntime maxRequestLength="256000" executionTimeout="900" />
</system.web>

This should give ample time.

One other note which may be relevant .. I had problems with the web platform installation of PHP as it would not install PEAR so I removed and installed PHP as per these steps http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/ and into a c:\php5 location so I could get pear running. I doubt this has much influence as like I said smaller uploads work fine.
LVL 2
wait1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wait1Author Commented:
Ok this was a stupid mistake an incorrect value in the code was being read as the upload limit. 3 days I wont get back.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.