* Thus wrote Seairth Jacobs ([EMAIL PROTECTED]): > Under Apache 1.3, how can I respond to DELETE request with a PHP script? I > have no problem with GET, POST, or PUT. The only thing I found was the > "Scripts" directive, but that requires a specic script to be named. I am > looking for something more generic, possibly where I can just say that php > scripts can accept DELETE requests.
hmm.. I've never seen the DELETE method used anywhere, and probably for good reason. By default you cant use this method with apache and I'm not sure if you can enable it without recompiling it or getting a patch that enables it. Now if you do enable the method, it is rather undefined on how it would be handled by php. According to some documentation I found (w3c) is: <quote> DELETE Requests that the server delete the information corresponding to the given URL. After a successfull DELETE method, the URL becomes invalid for any future methods. </quote> If the client issues a 'DELETE /file.php' will the server delete the php file and make it unusable. Or will it pass the Request to php. If the latter happens then my assumption is that it will be like a GET request but the $REQUEST_METHOD variable will be 'DELETE' instead of 'GET'. And you program can act accordingly. Now with that said, the common way to simulate a DELETE method is by using GET with query paramaters telling you that this request want to really delete something. HTH, Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php