Please consider supporting my channel:
☕ https://ko-fi.com/davehollingworth
Learn how to upload a file using PHP.
Full PHP course:
➤ https://davehollingworth.net/phpy
In this video you'll learn how to:
• create a form in HTML to select files for upload
• configure PHP for file uploads
• save the file locally to the web server
• restrict files by size and type
• rename uploaded files for security
• avoid overwriting existing files
Code shown in the video:
➤ https://gist.github.com/daveh/6934c8d...
CSS:
➤ https://watercss.kognise.dev/
PHP Documentation shown:
➤ https://www.php.net/manual/en/reserve...
➤ https://www.php.net/manual/en/ini.cor...
➤ https://www.php.net/manual/en/feature...
➤ https://www.php.net/manual/en/fileinf...
➤ https://www.php.net/manual/en/functio...
00:00 Introduction
00:31 HTML form
01:30 PHP script
02:27 $_FILES
04:04 php.ini enable file uploads
05:02 Upload errors
06:50 Restricting size
08:44 php.ini size settings
10:30 Restricting by type
12:52 The temporary file
13:40 Move the file
16:20 Filename security
17:42 Unique filenames
19:03 Summary
#PHP #files #HTML #upload
Смотрите видео PHP File Uploads | The Complete Guide to Uploading Files Using PHP онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dave Hollingworth 08 Октябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 44,48 раз и оно понравилось 83 людям.