uploading images by users

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Tanya71
Forum Newbie
Posts: 1
Joined: Wed Aug 09, 2006 12:05 pm

uploading images by users

Post by Tanya71 »

Hi :) ,

I want to create an online art gallery whereby users can upload & publish their images & text directly from their browsers without emailing me. but i do wish to be able to delete unsuitable images or items if possible.

Is this easy to do as I have literally just start teaching myself Php!

I appreciate any help you can give me on this.

Many thanks

Tanya
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Sounds like a nice project, but I'm not sure if it's the best if you just started. Letting users do things like writing text and uploading images on a live site will take some serious measures to ensure the safety and security of the application. Something which isn't too easy (even services as google and myspace suffer/have suffered from vulnerabilities).

So it certainly is possible, but not easy. (IMHO)
matt1019
Forum Contributor
Posts: 172
Joined: Thu Jul 06, 2006 6:41 pm

Re: uploading images by users

Post by matt1019 »

Tanya71 wrote:Hi :) ,

I want to create an online art gallery whereby users can upload & publish their images & text directly from their browsers without emailing me. but i do wish to be able to delete unsuitable images or items if possible.

Is this easy to do as I have literally just start teaching myself Php!

I appreciate any help you can give me on this.

Many thanks

Tanya
Hi Tanya!

Once you get hang of php, build yourself from ground up ;)

Bascially, just what matthijs said... start with a simple project first.

Lookup online, there are many GOOD tutorials on php and also pickup some books on php and mysql (mysql you will need, because it is what you will need to store the users' photo settings, site settings, you name it.)

The reason why I said books is because most books will offer exercises at the end of chapters.... this is what will help you.

Second thing to look for, are the source code itself. you will not believe this, but looking at the sourcecode and realizing HOW it works, will help you immensely.... mere book reading might not be enough.


One last thing... there are many gallery applications out there... did you take a look at them? (by no means I am saying that you cant do this. please dont get me wrong.... I was just wondering if you took a look at that :) )

-Matt
litebearer
Forum Contributor
Posts: 194
Joined: Sat Mar 27, 2004 5:54 am

Post by litebearer »

just some ideas...

minimally two tables

artists
artist_id, name, email, background, artist_approved

images
image_id, artist_id, image_name, image_description, image_approved

make it so artists must register and be approved prior to allowing uploads

if approved provide username and password to allow access to upload script

you need to decide if you want to allow the images and descriptions that are uploaded to be visible to the world WITHOUT your approval of same OR if it needs to be approved first.
Post Reply