Getting PHP to handle other HTTP methods
| From: | Sam Minnee | Date: | Wed, 19 Feb 2003 23:13:39 +0000 |
| Subject: | Getting PHP to handle other HTTP methods | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136267@lists.php.net to get a copy of this message | ||
Hi,
I want to get PHP to handle the HTTP methods PROPFIND, PUT, DELETE, MKCOL,
RENAME, MOVE, and COPY. I've coded up a WebDAV server in PHP to do things
that mod_dav cannot (store content in a database or filesystem, call event
handlers, filtering the file list, more sophisticated permission
configuration on new folders and files)
Currently it's running as a standalone app, using xinetd, but I want to try
and get it to run within apache so that I can use the same port, and for
efficiency and security reasons.
I figured that if I have rewrite rule that changed /dav/(anything) into
/dav/mydav.php?uri=(anything) I would be on my way. However, seems to only
sends the GET and POST methods to the script. I'm using mod_php, not the
standalone w/ a handler.
Is is possible to send the extra WebDAV methods to the PHP script?
Thanks,
Sam