PDA

View Full Version : Image gallery that allows uploads


mark1511
10-14-2007, 03:20 PM
Hi, I've created a few simple websites using Dreamweaver 8. What I want to try and do is add an image gallery to my website that allows people to upload images to the page. At the moment people e-mail images to me and I then add them to the site. Does anyone know where I can start with this?

owner
10-14-2007, 04:28 PM
This could be done pretty easily.

What I would do is first create an upload script that uploads the images to a directory. After that store each image location in a database.

Then when you get to your gallery just loop a query over and over till all your images are taken out of the database and displayed on the page.

Note: I am not sure if you can do this just using dreamweaver. I think you might need to learn some type of server-side scripting.

Hope this helps,
Owner

davidj
10-14-2007, 04:56 PM
owner is correct

im not sure if you can do this using DW but you do need to learn a scripting language to get the best out of it

mark1511
10-14-2007, 07:20 PM
Thanks for the info. Any idea what kind of scripting I could use?

davidj
10-14-2007, 07:26 PM
PHP is quite good

there are others which are just as good but i use PHP and i like it

http://www.dreamweaverclub.com/vtm/php-mysql-apache.php

mark1511
10-14-2007, 08:19 PM
Thanks, David. I'm working through your tutorials now.

Fiery251
10-16-2007, 03:45 PM
I was in the same boat a week or so ago.

Check with your hosting package. I'm on a Linux based hosting and used Fantastico to install a Coppermine gallery.

It was fairly painless even for a beginner like me, to install and configure.

If your hosting allows it and has the facility it would be an easy way to do it.

m1a2x3x7
10-16-2007, 04:39 PM
mix Davids tutorials and this tutorial and you'll be good to go.

http://www.tizag.com/phpT/fileupload.php

Fiery251
10-16-2007, 04:46 PM
Nice tutorials there, thanks. I will bookmark them for future reference.

To mark, here's an example of how Coppermine looks, its the one I did last week for a client of mine:-

http://www.glasgowkayakclub.com/coppermine/

Its not 100% completed yet but it gives you an idea of what can be achieved if you have access to it via your hosting Cpanel. 8)