hello...I've been using this site a lot lately, getting help/tips as I am currently building a website. Right now I am trying to decide the best way to setup my pictures section. I am going to be going on a trip to Europe in a couple months and will be bringing my laptop/digital camera, and I am going to upload my daily pics to my website for my fam and friends to see back home.
My idea is to have a new pics section and an archived pics section. new pics will be for the new ones daily, and archived will be a congolmerate of old pictures, organized by maybe week or something like that.
I want the site pics page to look like the following...
1) Along the left side will be a directory-type structure (as in the results of a DOS dir command) containing a hyperlink on each picture.
2) on the right side will (initially) be a blank polaroid, with a left arrow and a right arrow underneath it.
3) when a user clicks on a picture hyperlink from the left side of the screen, the picture is retrived from the server and thrown into the polaroid picture (it will have to be resized to fit).
4) the user can then either click on the picture in the polaroid to have it full screened or can use the left/right arrows to navigate between the other pictures, having them display in the polaroid.
I am trying to determine the best method to do this, as I don't want to have to do a bunch of coding every night after I upload the new pics when I'm on vacation. I was thinking I could use my mysql db to store the name of each picture to display on the left side of the screen and store its actual filename for the hyperlink. I could just move my new pictures into the "new" directory and move the old ones to archived directory, then do a DOS dir /B >> text.txt and get just a file containing the names of the images. I could write a php script page where I could paste the contents of text.txt into and have it update the database with this info. My problem with this is that I'll have to change the entries in the db to reflect my moving the old pics into the archived folder.
My other idea is using two text files, one for new pics and one for archived ones. when I move new pics into the "new" directory I could copy and paste the old pics into the archive list file, and the new ones into the "new" file. Then when someone loads the new pics page it will read from the new pics file line by line and construct the left side of the page.
anyone have some suggestions? right now I'm leaning towards using two files.
My idea is to have a new pics section and an archived pics section. new pics will be for the new ones daily, and archived will be a congolmerate of old pictures, organized by maybe week or something like that.
I want the site pics page to look like the following...
1) Along the left side will be a directory-type structure (as in the results of a DOS dir command) containing a hyperlink on each picture.
2) on the right side will (initially) be a blank polaroid, with a left arrow and a right arrow underneath it.
3) when a user clicks on a picture hyperlink from the left side of the screen, the picture is retrived from the server and thrown into the polaroid picture (it will have to be resized to fit).
4) the user can then either click on the picture in the polaroid to have it full screened or can use the left/right arrows to navigate between the other pictures, having them display in the polaroid.
I am trying to determine the best method to do this, as I don't want to have to do a bunch of coding every night after I upload the new pics when I'm on vacation. I was thinking I could use my mysql db to store the name of each picture to display on the left side of the screen and store its actual filename for the hyperlink. I could just move my new pictures into the "new" directory and move the old ones to archived directory, then do a DOS dir /B >> text.txt and get just a file containing the names of the images. I could write a php script page where I could paste the contents of text.txt into and have it update the database with this info. My problem with this is that I'll have to change the entries in the db to reflect my moving the old pics into the archived folder.
My other idea is using two text files, one for new pics and one for archived ones. when I move new pics into the "new" directory I could copy and paste the old pics into the archive list file, and the new ones into the "new" file. Then when someone loads the new pics page it will read from the new pics file line by line and construct the left side of the page.
anyone have some suggestions? right now I'm leaning towards using two files.