PDA

View Full Version : Automatic loading of new photos?


mercator
12-01-2008, 06:10 PM
Hello,

I have an FTP job that downloads new pictures all the time and places them in directories (one per day of download). Is there a way of telling pixelpost - e.g., by calling an URL or a PHP script manually - to scan a directory (with all its subdirectories) and add the pictures to the gallery (ie one subgallery per directory). All without human interaction, please...

Is that possible?

Thanks,
Mercator

kevincrafts
12-02-2008, 12:24 AM
You could create a script that will add a photo to your site and then set it up on a cron to run daily. It doesn't need to be in the pixelpost framework as long as you give it the needed access to your DB.

mercator
12-02-2008, 08:51 PM
That I do understand... But where do I find info on which function I need to call in order to add a .jpg located in a file /imges/image.jpg with category XYZ to my pixelpost gallery?

Dennis
12-03-2008, 05:22 AM
No function, just plain SQL.