tags:

views:

377

answers:

0

for sending data with curl PUT request , I am using below code

$tenMB = 10 * 1024 * 1024;   
$fh = fopen("php://temp/maxmemory:{$tenMB}",'rw');
fwrite($fh, $this->putFields);   
rewind($fh);   
curl_setopt($this->_handle, CURLOPT_INFILE, $fh);   // this line throws error

I am getting below error on IIS 7

HTTP Error 500.0 - Internal Server Error C:\Program Files\PHP\php-cgi.exe - The FastCGI process exited unexpectedly

Module FastCgiModule Notification ExecuteRequestHandler Handler PHP_via_FastCGI Error Code 0xc0000005

How to fix this ?