Please consider supporting my channel:
☕ ko-fi.com/davehollingworth
Learn how to upload a file using PHP.
Full PHP course:
➤ 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:
➤ gist.github.com/daveh/6934c8d...
CSS:
➤ watercss.kognise.dev/
PHP Documentation shown:
➤ www.php.net/manual/en/reserve...
➤ www.php.net/manual/en/ini.cor...
➤ www.php.net/manual/en/feature...
➤ www.php.net/manual/en/fileinf...
➤ 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
Пікірлер: 79