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!
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...???
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....
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.
$ext will not contain a '.', so $ext != '.gif' should always be true.
imagegif() requires an image resource. $uploadFile is not an image resource.
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.