Hi I've got today a WebDAV server in PHP-Userland running. It works quite well with nautilus and cadaver and not so well with MS-Stuff... but it was just a proof of concept and I will get that running, too :) When i finished it, I will most likely put it online anywhere (or contribute it to PEAR ..)
BUT, it doesn't work without patching PHP. I had to change main/SAPI.c to get the POST-data from the other REQUEST_METHODs than POST (PROPFIND et al.) line 307 should then be (real patch attached) && strcmp(SG(request_info).request_method, "GET")) { instead of && !strcmp(SG(request_info).request_method, "POST")) { but i don't know, if this has any unwanted sideeffects, or if this is the "right" thing to do... Or are for example PUT requests in any way handled with PHP at the moment? Comments are very welcome about that :) chregu -- christian stocker | bitflux GmbH | schöneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [EMAIL PROTECTED] | gnupg-keyid 0x5CE1DECB
Index: SAPI.c =================================================================== RCS file: /repository/php4/main/SAPI.c,v retrieving revision 1.129 diff -u -r1.129 SAPI.c --- SAPI.c 14 Jan 2002 13:36:54 -0000 1.129 +++ SAPI.c 19 May 2002 20:05:58 -0000 @@ -303,7 +303,7 @@ if (SG(server_context)) { if (SG(request_info).request_method - && !strcmp(SG(request_info).request_method, "POST")) { + && strcmp(SG(request_info).request_method, "GET")) { if (!SG(request_info).content_type) { SG(request_info).content_type_dup = NULL; if(PG(always_populate_raw_post_data)) {
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php