- Alex Takes Pics: My new photo journal project
- 14 Sep 2014 12:02:05 am
- Last edited by Alex on 01 Nov 2014 03:32:31 pm; edited 2 times in total
I have a new website project for my photos and I want to learn a bit about MySQL. I don't think I really need to setup a database but I want to get things ready so I can grow into it in a few years.
My ambition is to upload photos from my phone via FTP to Folder A and have a cron job process the info such as time/date taken and maybe the location. It will also rename the files in numerical order and create a thumbnail image then move the photo to Folder B. The MySQL database would hold values such as the location, date, time and anything else retrievable over EXIF. There would be no user page for logging in and uploading.
The basis for my idea stems from the new iOS 8 and how it's opening up a little bit to allow apps to work with each other. I'm hoping my FTP app updates and I can upload photos just like I upload to Facebook: select photo(s), select Facebook, select album, define a description and it uploads. Except I'd be selecting FTP, selecting Folder A and letting it upload. Where a cron job will run a script to process the photos.
It's a bit more ambitious than what I've done before. Currently, I upload a thumbnail and a full-size photo and a script searches the respective folders each time the page loads. If a photo as a thumbnail, it's displayed. If it isn't it's skipped and not accessible by viewing the photos via the thumbnail list or the "Previous" & "Next" link (though you can change the URL to see each hidden photo individually). That's the core of my current photo portfolio script. I'm hoping by creating a MySQL database for this "photo blog" of sorts I can start revamping my photo portfolio to leverage it as well: Keywords, detailed photo info, etc. I don't need users.
Are there any functions I need to look into, both PHP & MySQL, in order to achieve success for this project? I will likely need to update from CentOS 5.4, should I upgrade to v7 or is there a preferable Linux distro? I chose COS 5.4 because my Web Host Manager (WHM) worked on it. Which, isn't the end of the world, I just need to find another WHM that isn't cPanel or Kloxo.
Sometime in October, this is now officially a Photo Journal rather than a Photo Portfolio.
My ambition is to upload photos from my phone via FTP to Folder A and have a cron job process the info such as time/date taken and maybe the location. It will also rename the files in numerical order and create a thumbnail image then move the photo to Folder B. The MySQL database would hold values such as the location, date, time and anything else retrievable over EXIF. There would be no user page for logging in and uploading.
The basis for my idea stems from the new iOS 8 and how it's opening up a little bit to allow apps to work with each other. I'm hoping my FTP app updates and I can upload photos just like I upload to Facebook: select photo(s), select Facebook, select album, define a description and it uploads. Except I'd be selecting FTP, selecting Folder A and letting it upload. Where a cron job will run a script to process the photos.
It's a bit more ambitious than what I've done before. Currently, I upload a thumbnail and a full-size photo and a script searches the respective folders each time the page loads. If a photo as a thumbnail, it's displayed. If it isn't it's skipped and not accessible by viewing the photos via the thumbnail list or the "Previous" & "Next" link (though you can change the URL to see each hidden photo individually). That's the core of my current photo portfolio script. I'm hoping by creating a MySQL database for this "photo blog" of sorts I can start revamping my photo portfolio to leverage it as well: Keywords, detailed photo info, etc. I don't need users.
Are there any functions I need to look into, both PHP & MySQL, in order to achieve success for this project? I will likely need to update from CentOS 5.4, should I upgrade to v7 or is there a preferable Linux distro? I chose COS 5.4 because my Web Host Manager (WHM) worked on it. Which, isn't the end of the world, I just need to find another WHM that isn't cPanel or Kloxo.
Sometime in October, this is now officially a Photo Journal rather than a Photo Portfolio.