Page 1 of 1

Users using pictures

Posted: Tue Feb 15, 2005 4:04 pm
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

Posted: Tue Feb 15, 2005 4:05 pm
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.. ;)

Posted: Tue Feb 15, 2005 4:06 pm
by feyd
sounds nice..

Posted: Tue Feb 15, 2005 4:11 pm
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....

Posted: Tue Feb 15, 2005 4:12 pm
by feyd

Posted: Tue Feb 15, 2005 7:31 pm
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

Posted: Tue Feb 15, 2005 7:42 pm
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.

Posted: Tue Feb 15, 2005 7:43 pm
by shiznatix
ignore this

Posted: Tue Feb 15, 2005 8:29 pm
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()