Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Working With File System In PHP - Full PHP 8 Tutorial
Play lesson

Learn PHP The Right Way - Full PHP Tutorial For Beginners & Advanced - Working With File System In PHP - Full PHP 8 Tutorial

Master PHP 8 in Style: From Basics to Building Dynamic Apps with Program With Gio

4.0 (0)
14 learners

What you'll learn

Learn to install and configure PHP and web servers effectively
Understand and utilize PHP data types and operators for code efficiency
Master PHP's OOP concepts, including classes, interfaces, and inheritance
Implement security measures like CSRF, XSS protection, and session management

This course includes

  • 34.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

In this PHP tutorial, you will learn how to work with files & filesystem in PHP. You will learn how to create & delete directories, open files, put content, read content, read files line by line, read CSV files, some tips & things to be aware of such as return value caching for some of the file related functions. SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL 👍 Smash the like button 🤝 Subscribe to the channel & turn the notifications on 💬 Post comments, any feedback is greatly appreciated ⭐ Become a Patreon: https://www.patreon.com/programwithgio THANK YOU! LESSON 1.30 Course Outline - https://github.com/ggelashvili/learnphptherightway-outline Course Playlist - https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe- RESOURCES Docs for clearstatcache & list of affected functions - https://www.php.net/manual/en/function.clearstatcache.php Docs for fopen & modes - https://www.php.net/manual/en/function.fopen.php Filesystem functions - https://www.php.net/manual/en/ref.filesystem.php CHAPTERS 00:00 - List of all files & directories - scandir 00:44 - Check if file is a directory or a file - is_dir / is_file 00:58 - Create & delete directories - mkdir / rmdir 02:02 - Check if file or directory exists & print filesize - file_exists / filesize 02:28 - Clear cached values of functions like filesize - clearstatcache 03:30 - Open files & resource data type - fopen 04:25 - Using error control operator to suppress warnings 05:25 - Read files line by line - fgets / fclose 06:25 - Read csv files - fgetcsv 07:02 - Get file contents & store in a variable - file_get_contents 07:57 - Write content to a file - file_put_contents 08:50 - Delete, copy, rename & move files - unlink / copy / rename 09:34 - Get information about a file - pathinfo

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

FAQs

Course Hive
Download CourseHive
Keep learning anywhere