PHP Tutorials: Register & Login (Part 23): Profile Image Upload (Part 3)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

Starting video's view count: ~400, 000
Last video's view count : ~1, 500. That just goes to show how well people can stick with something. Congratz to everyone who stuck it out. I know I did... (I had to rewatch almost 5 times to fully understand the material) and it was absolutely worth it 110%. Thanks Alex, you're both a gentleman and a scholar! :D

DevelopTheOpenWeb
Автор

You might also want to check for a profile image and delete it if it exists when a user uploads a new one.

I really like these register and login tutorials, I can't wait to see what new tutorials will come along.

ImplodingExplosion
Автор

Finally, the end of the series XD Whoww! Btw, thanks alex for creating this videos. It help us understand PHP a lot better :D

TheRoxasth
Автор

46 videos later (one seems to be deleted) I have a better understanding of PHP. I had no idea what PHP was before this and thanks to your detailed explanations, I have a way better understanding. Thank You.

fvckinJMONY
Автор

Finished this from start to finish and everything works like butter. Thanks for all the hard work, Alex. There were problems along the way, but they forced me to really get involved in the coding process and served me well...Quote: Smooth Seas do not make for Skilled Sailors.

I will be customizing the CSS and adding additional features, but this is a great foundation to build from. Thanks again. I subscribed and love your new CSS3 videos.

bluecafe
Автор

Thank you Alex if your still out there on youtube. I'm proud of myself that this is the first time I stuck it out. Typed it all straight from the videos. In the beginning I despaired that there was no source code. But I actually learned more from typing it all up myself :) Cheers!

darknawg
Автор

by far the best tutorial (playlist) i have ever watched, i have learned so much going through this. Thanks so much

ReeceWoodhams
Автор

Thank you Alex, journey of learning with you has been very helpful. This sample is part of my resume...I donate as soon as I get a job. This is a great service!:)))

pall
Автор

To delete old pic:
in loggedin.php => before executing function add
$old_file_path = $user_data['profile'];
change_profile_image($session_user_id, $file_temp, $file_extn, $old_file_path);

in users.php =>
function change_profile_image($user_id, $file_temp, $file_extn, $old_file_path) {
...
move_uploaded_file($file_temp, $file_path);
if (file_exists($old_file_path) === true) {
unlink($old_file_path);
}
mysql_query("UPDATE
}

Nice tutorial!

Thx,
Alex!

FENDTlv
Автор

Hi Alex

Thanks for this amasing tutorial, you have been a great teacher to me. I were testing my knowledge at w3school in PHP/SQL/HTML and i started by only have like 5 percent right, After i started to follow you're tutorial, I do 90% correct in any off them, Thanks for that;) i'am really grateful

ThatDaneChris
Автор

woohoo in a stroke of inspiration i decided to check the server side properties of the profile folder and discovered the permissions were off !! turned them on and YAY it works now. now to add the above code to remove old pics and i'm sweet!

yogicave
Автор

If someone changes their profile picture, how would you go about automatically deleting the old picture? The images folder could get pretty bloated

natebrooks
Автор

finally finishing the series....thanks a lot alex for sharing this videos...i learn a lot from this...

pusha
Автор

Hey Alex, thank you very much for your great tutorials! Finally I could complete this login and register tutorial. Many many thanks

BengkelDevops
Автор

I made it! Finally! The end! Thanks Alex! Once again you have proved yourself to be outstanding. Keep up the great work buddie!

Milixation
Автор

Best tutorial on the web by miles!!! Simple to follow and very professional!! I'm stuck on the emails I thinks the server I'm using I doesn't allow for mail() so I need to go back and sort that out then I'm done!! THANK YOU

kenteastwood
Автор

Just "thank you" isn't enought bro, may God bless you!

adoumexpert
Автор

This is actually the first tutorial i finish !! Thank you very much Alex it was great!

allucarrd
Автор

Successfully finished this login tutorial!!! Thanx for the great insights Alex! I learned alot!

thomasrenard
Автор

Hey Alex, I was just wondering how you would go about applying the profile image uploader to the settings page. I keep running into the issue of there being two submit buttons on the same page. One to update the general information of the first name, last name, etc, and the other button is used to upload the image. Do I use two forms or one?

flapjacksmike
visit shbcf.ru