I'm having a problem with PHP/WebDAV. Here's my problem:
I am working on a system that keeps track of documents. The documents are stores based on document ids, and the filename is saved on the database along with the document id and file type/size, and the file is renamed to just the id number.
Now I need to use webdav to let user edit files as it is normally done with webbad, with the problem that the files have no name/extension so I have to recreate them with php. I created a couple of php files, that capture the GET, PROPFINDS, PUTs, etc. The idea is that the user opens the php file specifying the file id, and the php file looks up the name, retrieves the content of the file and sends it to the client (this is currently being done without problem, when the php script sees a GET, it looks for the file and send it). I need the php script to be able to capture PUT as well and when it gets one, it takes the data and saves it to the file that has the id. The problem is, I open the .php file and I get the data of the file, but when I save, my php code is replaced with the actual text of the file as if the file they're editing is the php file.
Any help or advise you could provide me about this would be really appreciated. Thanks.
O.-
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php