Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2011-09-15 17:47:21

Lloyd
Member
Registered: 2011-09-13
Posts: 21

php api examples to add images to the database

Tags: [2.2]

Hi,

I searched the forum and found a great php api example to get data from the database. Is there any examples on how to add data to the database, such as adding an image, using the avaiable api.

Thanks,



Lloyd

Offline

#2 2011-09-15 23:10:44

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 12238
Website

Re: php api examples to add images to the database

Are you looking for something like this page? [wiki] pwg.images.addSimple


Latest blog post on Piwigo.com: Referral program gets stronger for summer 2014 (June 27th, 2014)

Offline

#3 2011-09-15 23:16:47

Lloyd
Member
Registered: 2011-09-13
Posts: 21

Re: php api examples to add images to the database

Yes, I was able to find this page, but it only shows an example using perl, and I was looking for an example for php.

Does this exist.


Lloyd

Offline

#4 2011-09-15 23:34:00

plg
Piwigo Team
Location: Paris, France, Europe
Registered: 2002-04-05
Posts: 12238
Website

Re: php api examples to add images to the database

I don't think I ever tried to use pwg.images.addSimple from PHP, but I would start by reading this tutorial http://www.html-form-guide.com/php-form … ubmit.html on how to submit form-data forms from PHP.


Latest blog post on Piwigo.com: Referral program gets stronger for summer 2014 (June 27th, 2014)

Offline

Board footer

Powered by FluxBB

twitter facebook google+ newsletter Donate Piwigo.org © 2002-2014 · Contact