Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

IIS6/FASTCGI/PHP 5.3 PUT Verb issues

$
0
0

Im trying to build a REST API server in php and Im running IIS6 with FastCGI 1.5 and PHP 5.3 and I cannot get the PUT verb to work. In the Application extension mapping within the site->directory I have the .php extension executable of C:\WINDOWS\system32\inetsrv\fcgiext.dll and the verbs POST,GET,HEAD,PUT,DELETE. When I have curl in PHP call out the index.php file thats running my REST server code I get a 501 Not Implemented. I have googled endlessly and couldnt find an answer to enable it for PHP without turning on WebDav and setting permissions on the folder of my php scripts. This works but I dont want this because then anyone could just upload files to this folder. Does anyone know of a fix for this for getting the PUT verb to work for php scripts that use FastCGI ? I replicated the best I could my REST server code in Classic ASP 3.0 with the same verbs allowed in the .asp extension mapping and the PUT request works using the same php curl REST client code.

 Update: I fixed this myself.


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>