Working With File System In PHP - Full PHP 8 Tutorial @ProgramWithGio
Working With File System In PHP - Full PHP 8 Tutorial  @ProgramWithGio
Uploaded February 2021 | Updated November 2026, 2 hours ago
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: patreon.com/programwithgio
THANK YOU!

LESSON 1.30
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-

RESOURCES
Docs for clearstatcache & list of affected functions - php.net/manual/en/function.clearstatcache.php
Docs for fopen & modes - php.net/manual/en/function.fopen.php
Filesystem functions - 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
Working With File System In PHP - Full PHP 8 TutorialHow to Send Email in PHP - Symfony Mailer - Email Protocols - Mailhog Setup - Full PHP 8 TutorialLets Do Some Data Modeling & Create Entities - Build Expense Tracker App With PHP 8The Basics of Routing in Laravel | Learn Laravel The Right WayHow To Include Files In PHP - Include and Require - Full PHP 8 TutorialWhat Are Database Migrations & How To Use Doctrine Migrations - Full PHP 8 TutorialSlim Framework With PHP-DI & Doctrine ORM - Full PHP 8 TutorialPHP Operator Precedence & Associativity - Full PHP 8 TutorialFrom Loop Engineering to Graph Engineering... Whats Next?What Are Laravel Service Providers and How Do They Work? | Learn Laravel The Right WayPHP Error Handling & Error Handlers - Full PHP 8 TutorialPHP Integer Data type - Full PHP 8 Tutorial
Program With Gio |

Working With File System In PHP - Full PHP 8 Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER