Урок 10. Файлы в PHP

14 подписчиков

12+
12+

2 просмотра

7 часов назад

ПожаловатьсяНарушение авторских прав

14 подписчиков

12+
12+

2 просмотра

7 часов назад

ПожаловатьсяНарушение авторских прав
12+
12+

2 просмотра

7 часов назад

Learn PHP file handling in this practical Lesson 10 from the Dynamic Tech Computing PHP course. In this lesson, we work with PHP files and learn how to open, write, overwrite, append, download, upload, and check the size of files. You will work with important PHP file-handling functions and concepts including fopen(), fclose(), fwrite(), file modes such as r, r+, w, and a, file downloads using HTTP headers and readfile(), and file information using functions such as filetype(), basename(), and filesize(). The lesson also demonstrates how to create an HTML file-upload form using method="post" and multipart/form-data, then process the uploaded file with PHP and move_uploaded_file(). The practical examples include troubleshooting file paths, directories, and permission-related errors when working with a local PHP/XAMPP environment. This lesson is designed for PHP beginners, students, aspiring developers, IT learners, and anyone learning practical web development. Follow Dynamic Tech Computing for practical programming, computer science, networking, computer engineering, digital electronics, and technology education. LEARN → PRACTICE → BUILD. #PHP #PHPFileHandling #WebDevelopment #PHPFileUpload #DynamicTechComputing 00:00 Introduction to PHP File Handling 00:58 Opening Files with fopen() 02:19 Checking Whether a File Opens 04:50 Closing Files with fclose() 05:21 PHP File Modes: r, r+, w and a 07:05 Writing to Files with fwrite() 09:40 Overwriting File Content 10:10 Appending Data to Files 11:37 Downloading Files with PHP 12:06 Downloading Files with an HTML Link 13:07 Creating a PHP File Download 15:43 Using HTTP Headers for Downloads 16:54 Using readfile() 17:13 Troubleshooting File Paths 19:49 Uploading Files with PHP 20:16 Creating the HTML Upload Form 20:37 Using multipart/form-data 21:18 Adding a File Input 22:51 Creating the PHP Upload Backend 23:05 Setting the Upload Path 24:26 Using move_uploaded_file() 26:28 Testing File Uploads 27:29 Troubleshooting Permissions and Paths 28:20 Successful File Upload 30:00 Getting File Size with PHP 30:36 Using filesize() 31:23 Testing File Size 31:57 Conclusion

Название:

Урок 10. Файлы в PHP

Категория:

Разное