Forum Moderators: coopster

Message Too Old, No Replies

How would i make this php script?

very new at php and mysql and want to make a script

         

robobat

4:46 am on Feb 13, 2005 (gmt 0)

10+ Year Member



Hi everyone,

As you can see, I pretty much don't know squat about php and mysql:( I need to write a script were I can upload pictures with an option to download and preview them. Also, i want to have them automatically shift when new pictures are updated and i wanna make several categories for different types of pictures. I just want to know how could this be done? do i need to write one big script where i implement it into a html page and it will automatically generate php pages when i update? can anyone help me on how to go about doing this and where to start? cause i have no clue where to start! thx in advance for all your replies;)

hakre

5:18 pm on Feb 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi robobat!

where to start? first of all, and you did this a little bit already, divide your big aim into its parts:

- file (image) upload [de2.php.net]
- preview pictures / thumbnailing [phpthumb.sourceforge.net]
- think about how you want to categorize your images (filesystem based, db based). this will then be important on how to go on.

i would start with the last point getting more clear what kind of categorization you exactly want. maybe such a programm already exists (photo album) and you only have to perfom setup operations.

otherwise i would then start with the structure, then file uploading and then thumbnail generation. as the last point i would create the preview and download part, this is mainly output and i guess the easiest part.

jatar_k

5:22 pm on Feb 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



how about starting with a small script that uploads the pictures and stores them.

even before this though I would just use a pen and paper and draw out what it is exactly that you want to do. Then break it down into individual actions/sections and start with the uploading and storage.

Once you know how you want to store the pictures then you can start on how to display them etc. Whether the upload script needs to be extended to create pages as well or if you can find a way to have your pages be dynamic enough to incorporate any changes in your data.

There is an image uploader here that you could adapt.
Image Upload Script [webmasterworld.com] msg 29

hakre was quick ;)