Okay, I made a quick run through a PHP book I borrowed and it's pretty much useless. It doesn't describe stuff well at all and doesn't break down the examples into understandable parts. I can code in ColdFusion and I'm assuming the process is similar in PHP. The problem is that I can't find any specific help on what I'm trying to do. I see a lot of scripts with more than I'm asking for and I can't read through the "junk" to figure out what I want.
The first thing I am trying to make is an automated thumbnail gallery. I want thumbnails on a page, generated on the fly preferably, and some description text under each thumbnail. I figure since I want descrtiptive text, I have to use a database. I want to do this step by step so I learn it. Please let me know if I should make changes to my approach.
First, I want to assume my information is in the database. Eventually, I would like to have a script upload files and add information to the database but I'd like to get the gallery part working first. I want an index.php in a folder 'FOLDERNAME' which will be the gallery name as well.
1. Grab image name and description where gallery is FOLDERNAME
2. Loop auto-generate thumbnails, adding text, and adding links to images.
Assuming that works, I want to create an image upload page, which will allow me to upload one image at a time to a specified directory/gallery.
1. Upload field
2. Description text field
This will upload the image, and write the following to the database: image name, description text, and gallery (noted by the folder the image was uploaded to). I also want to make sure that any image uploaded belongs to me. I guess that's chown(). I'm not sure how that works exactly. Are the thumbnails that are generated, permanent or are they generated each time to the page? If they're permanent, I guess I would just add them to the database as well and not recreate them every time.
I know I just asked for a lot. Thanks for any help you can give me.
The first thing I am trying to make is an automated thumbnail gallery. I want thumbnails on a page, generated on the fly preferably, and some description text under each thumbnail. I figure since I want descrtiptive text, I have to use a database. I want to do this step by step so I learn it. Please let me know if I should make changes to my approach.
First, I want to assume my information is in the database. Eventually, I would like to have a script upload files and add information to the database but I'd like to get the gallery part working first. I want an index.php in a folder 'FOLDERNAME' which will be the gallery name as well.
1. Grab image name and description where gallery is FOLDERNAME
2. Loop auto-generate thumbnails, adding text, and adding links to images.
Assuming that works, I want to create an image upload page, which will allow me to upload one image at a time to a specified directory/gallery.
1. Upload field
2. Description text field
This will upload the image, and write the following to the database: image name, description text, and gallery (noted by the folder the image was uploaded to). I also want to make sure that any image uploaded belongs to me. I guess that's chown(). I'm not sure how that works exactly. Are the thumbnails that are generated, permanent or are they generated each time to the page? If they're permanent, I guess I would just add them to the database as well and not recreate them every time.
I know I just asked for a lot. Thanks for any help you can give me.