I have an old codebase that I wrote years ago that currently runs my family picture gallery on my website. I would like to update it to Gallery2, and I'm going through my current structure and writing some conversion scripts in PHP/SQL to do this.
All the pics I want to convert are currently already on the web server, and I can write the code to automatically choose what albums they should go in within the new gallery.
Can someone point me to a starting point where I can call a method that can create the data needed for a new picture without actually uploading anything? I just need to move the file myself.
I also have lots of comments from the old code that need to be moved as well, but I'll probably wait on all that.
Thanks in advance.
Posts: 2
So basically, I have the following:
- pic file on server
- caption for pic
- album I want to put it
- timestamp I want to use
- user who uploaded it
And I want to cram that into the gallery2 database. I just don't want to upload anything, but only move the file.
(Just in case there was any confusion.)