Users using pictures

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
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Users using pictures

Post by Smackie »

alright i was just thinking of having users put there own pictures on kinda like a Avatar and when they post something on my website it shows it beside there name or whatever kinda like a forum...???


Smackie
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

That's nice.

Thanks for the valuable insight on what you were thinking of, have a nice time developing that! :)




P.S. I'm not trying to be a complete jackass, just try asking a question next time.. ;)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sounds nice..
Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

Alright well all i really need to know is how to have an uploader that will upload the users pictures and save them and post them up?? i can figure out the rest....
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Smackie
Forum Contributor
Posts: 302
Joined: Sat Jan 29, 2005 2:33 pm

Post by Smackie »

ok i got the upload up but still where can i have it set to save the pictures?? and how would i have there picture sent to that page they talk on??


Smackie
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

1) where ever you like.
2) you can.. use a downloader script, if you want to hide the actual location of the files, or just give the url of the file in an image tag.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

ignore this
Last edited by shiznatix on Tue Feb 15, 2005 8:38 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

  1. $ext will not contain a '.', so $ext != '.gif' should always be true.
  2. imagegif() requires an image resource. $uploadFile is not an image resource.
  3. Your call to move_uploaded_file() doesn't happen until after $uploadFile is passed through getimagesize() .. if the user doesn't have a file yet, the page would appear to die() at this point.
  4. same for checking filesize()
Post Reply