Well, the stuff I did in the apache_hooks branch shows how you can hook into other stages of the request chain and, for example, define a PHP script to be called at the url translation stage or the auth stage. The latter would allow you to perform PHP-based auth on all files, not just PHP files, for example.
Being able to run PHP code to translate a requested uri into a different on-disk resource would probably be useful in some sort of virtual filesystem context, but I don't think it is directly needed for DAV support. I'm not too crazy about Christian's patch. It allows POST data on a HEAD request, for example. I think that is a bad idea. This change: - && !strcmp(SG(request_info).request_method, "POST")) { + && strcmp(SG(request_info).request_method, "GET")) { should instead check AP(accept_options) and only if that is on should it explicitly allow POST data on an OPTIONS request. However, is OPTIONS the only DAV primitive that has associated POST data? Sure we'd need to handle PUT as well. I guess there is not POST data on a PROPFIND. -Rasmus On Mon, 19 Aug 2002, Wez Furlong wrote: > Hi Christian, > > I'm interested in this, so that I can export a virtual filesystem from > a big web application. > > I think Rasmus did some work on something in CVS in a branch called > APACHE_HOOKS or something; it we do integrate your patch, it's probably > worth combining your work with that code. > > --Wez. > > On 08/19/02, "Christian Stocker" <[EMAIL PROTECTED]> wrote: > > Hi > > > > I started coding a WebDAV Server in userlan php. Unfortunately it needs > > patching of the PHP-Sources, 'cause php does not accept http OPTIONS and > > HTTP_RAW_POST_DATA for other http-directives than POST, which a WebDAV > > server needs. > > > > The patch can be found at http://trash.chregu.tv/webdav.diff (against > > HEAD) > > > > I'm totally not sure, if I screwed up anything with that patch, but it > > runs since some weeks on my webserver without problems. > > > > More about my (totally unfinished) WebDAV class can be found at > > > > http://bitflux.ch/developer/misc/webdavserver.html > > > > Opinions? Possibility in including it in php 4.3? > > > > chregu > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php