PHP File Uploads | The Complete Guide to Uploading Files Using PHP

Dave Hollingworth
Dave Hollingworth
41.6 هزار بار بازدید - 2 سال پیش - Please consider supporting my channel:☕
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
2 سال پیش در تاریخ 1401/07/16 منتشر شده است.
41,653 بـار بازدید شده
... بیشتر