d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > D2jsp Like Site
Prev1234
Add Reply New Topic New Poll
Member
Posts: 21,424
Joined: Aug 18 2005
Gold: 1,459.69
Feb 26 2012 08:24pm
How do sites deal with uploading and storing images? If I want to make a site where users can upload images how would I manage that?
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Feb 26 2012 09:06pm
Quote (ggpwntthxbai @ 27 Feb 2012 03:24)
How do sites deal with uploading and storing images? If I want to make a site where users can upload images how would I manage that?


you store the ids in a database..
then you can sort the pictures however you want, probably by ip or username
and rewrite /filename.jpg to file/?get=filename which returns the picture

This post was edited by eagl3s1ght on Feb 26 2012 09:06pm
Member
Posts: 21,424
Joined: Aug 18 2005
Gold: 1,459.69
Feb 26 2012 09:09pm
Quote (eagl3s1ght @ Feb 27 2012 03:06am)
you store the ids in a database..
then you can sort the pictures however you want, probably by ip or username
and rewrite /filename.jpg to file/?get=filename which returns the picture


Thanks you. I have no idea what I'm doing here. How/where are the images stored? They aren't stored in a database right?
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Feb 26 2012 09:15pm
Quote (ggpwntthxbai @ 27 Feb 2012 04:09)
Thanks you. I have no idea what I'm doing here. How/where are the images stored? They aren't stored in a database right?


in folders on your servers harddrive.. ever thought of googling "php uploading script" ? guess not.
Go Back To Programming & Development Topic List
Prev1234
Add Reply New Topic New Poll