Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upload w/ script
#6
(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
Reply


Messages In This Thread
upload w/ script - by hoedlmoser - 08-03-2010, 04:38 AM

Forum Jump:


Users browsing this thread: