03-24-2011, 10:20 PM
(03-22-2011, 12:28 AM)max Wrote: I am sorry but I didn't get that, what did you want me to use? I did use the functions but I am not sure how to pass files over scripts, so I wrote a simple php script which included the addDocument function and all other letoDMS php include files.
Can curl be used to pass $_FILES and $_POST parameters?
I mean. if I used the php CLI, how can I pass the $_FILES and $_POST to it?
If you use LetoDMS_Core_Folder::addDocument() you don't need any $_FILES or $_POST variables. These variables are provided by php if the upload is done via http. If you write a php script using php CLI you don't have to use curl neither. curl is just for making http request.
Uwe