From: Michael J. <mic...@gm...> - 2012-11-09 12:30:11
|
Thanks. Where should the XML be 'PUT' and how do I trigger exist-db to reindex the files. On Fri, Nov 9, 2012 at 12:09 PM, Palmer, Eric <ep...@ri...> wrote: > Yes you can. > > We use Java for that but the same concepts hold. You can use two > techniques. > > 1) A http put of the file. In PHP look at curl and the put options. When > you do a put the file gets stored directly in the location you specify on > the url. > > A http post of the file. When you post you will submit the post data to > an xquery that can dispatch it to it's desired location. Using a xquery > dispatcher you can log in exist-db the post operation. > > The put is very simple and that is what we use but we have played with the > post version as well. > > If you put a file that exists already it is replaced (updated). We do > this with a java middleware program to two exist instances. We put 8,000 to > 15,000 files a day into exist-db. > > This is a php example for curl php put. Just change the url of the put > location. > http://www.lornajane.net/posts/2009/putting-data-fields-with-php-curl > > > Eric Palmer > Director of Web Services > University of Richmond > ________________________________________ > From: Michael Jones [mic...@gm...] > Sent: Friday, November 09, 2012 6:23 AM > To: exi...@li... > Subject: [Exist-open] Update/Insert xml to eXist-db > > Hi group, > > Is it possible to push new xml / update files in exist-db with PHP? > > I've had a look around for an example but the only one I could really find > was this http://www.ibm.com/developerworks/library/x-mxd5/ > > Is it possible to batch upload files to eXist with PHP? > > Thanks > |