Re: [PHP] PHP and WebDAV

2002-12-02 Thread olinux
I don't know much about WebDAV, but sounds like that
is not possible with PHP. You need something on the
client side. I have used Groove (a collaboration
software, They have a free demo as well -
http://groove.net). It's not PHP based but when I open
a shared document and switch back to groove I receive
a popup window - 'Groove has deteceted changes to
'Document Name' Would you like to upload changes?'
Something like that. 

So I guess maybe you could use some type of client
side program that checks the document last modified on
opening and then again when they switch back to the
(both from the Temp files folder) web browser. 

olinux


--- [EMAIL PROTECTED] wrote:
> Hi All
> 
> I am currently working on a simple document
> management system in PHP.
> Metadata and revision
> histories and other relevant data is stored in a
> PostgreSQL database.
> 
> I would like to set up this system so that there is
> NO access to any
> documents through the filesystem
> (web folders etc.)
> 
> Hence, the ideal situation is the following:
> (much simplified)
> 
> The user is sent to an URL such as:
> 
> http://www.blah.com/document.php?docid=9994112
> 
> This script document.php pushes the Word Document
> (or whatever type of
> document it may be) to the user's
> browser which in turn loads the relevant
> application. Now, normally when a
> user clicks "Save" it will attempt to
> save the file back to the Temporary Internet Files
> directory or something
> similar.
> 
> I would like to make it possible for the user to
> simply be able to hit
> Save. The request is then sent back (a webdav
> request)
> to http://www.blah.com/document.php?docid=9994112
> where this script can
> then retrieve the body of the file saved
> back to the web and then store it on the server file
> system as it pleases.
> That PHP script then updates the metadata in the
> PostgreSQL database.
> 
> So basically what I want to use of WebDAV is its
> facility for saving "back
> to the web". I'm not really interested in locking
> or versioning etc.
> 
> Will PHP and WebDAV support what I am looking for
> here? If not, is there
> anything else that will? The key point is that
> I must give the users a transparent way of saving
> back to the web without
> them having any access to the documents
> through shares etc.
> 
> Thanks in advance.
> 
> ---
> Adam Whitehead
> Software Developer - CSM Technology
> Microsoft Certified Professional (MCP)
> Ph: (08) 89361 455 ** Mobile (0411) 241 120
> E-mail: [EMAIL PROTECTED]
> www.csm.com.au
> 
> This e-mail, including any attachments, is intended
> only for the use of the
> individual or entity named above and may contain
> information that is
> confidential and privileged. Any information
> contained in this e-mail is
> not to be used or disclosed for any purpose other
> than the purpose for
> which you received it. If you are not the intended
> recipient you are
> notified that disclosing, copying, distributing or
> taking any action in
> reliance on the contents of this information is
> strictly prohibited. If you
> have received this e-mail by mistake, please delete
> this e-mail permanently
> from your system. WARNING: Although the company has
> taken reasonable
> precautions to ensure no viruses are present in this
> e-mail, the company
> can not accept responsibility for any loss or damage
> arising from the use
> of this e-mail or attachments.
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and WebDAV

2002-12-02 Thread Adam . Whitehead
Hi All

I am currently working on a simple document management system in PHP.
Metadata and revision
histories and other relevant data is stored in a PostgreSQL database.

I would like to set up this system so that there is NO access to any
documents through the filesystem
(web folders etc.)

Hence, the ideal situation is the following:
(much simplified)

The user is sent to an URL such as:

http://www.blah.com/document.php?docid=9994112

This script document.php pushes the Word Document (or whatever type of
document it may be) to the user's
browser which in turn loads the relevant application. Now, normally when a
user clicks "Save" it will attempt to
save the file back to the Temporary Internet Files directory or something
similar.

I would like to make it possible for the user to simply be able to hit
Save. The request is then sent back (a webdav request)
to http://www.blah.com/document.php?docid=9994112 where this script can
then retrieve the body of the file saved
back to the web and then store it on the server file system as it pleases.
That PHP script then updates the metadata in the
PostgreSQL database.

So basically what I want to use of WebDAV is its facility for saving "back
to the web". I'm not really interested in locking
or versioning etc.

Will PHP and WebDAV support what I am looking for here? If not, is there
anything else that will? The key point is that
I must give the users a transparent way of saving back to the web without
them having any access to the documents
through shares etc.

Thanks in advance.

---
Adam Whitehead
Software Developer - CSM Technology
Microsoft Certified Professional (MCP)
Ph: (08) 89361 455 ** Mobile (0411) 241 120
E-mail: [EMAIL PROTECTED]
www.csm.com.au

This e-mail, including any attachments, is intended only for the use of the
individual or entity named above and may contain information that is
confidential and privileged. Any information contained in this e-mail is
not to be used or disclosed for any purpose other than the purpose for
which you received it. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited. If you
have received this e-mail by mistake, please delete this e-mail permanently
from your system. WARNING: Although the company has taken reasonable
precautions to ensure no viruses are present in this e-mail, the company
can not accept responsibility for any loss or damage arising from the use
of this e-mail or attachments.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php