Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
PHP
3.8k+ articles
PHP-function
2.2k+ articles
PHP Programs
610+ articles
PHP-Questions
410+ articles
PHP-basics
93 articles
PHP-date-time
90 articles
PHP-file-handling
77 posts
Popular Articles
Recent Articles
How to Create a Folder if It Doesn't Exist in PHP ?
Last Updated: 29 April 2022
We can easily create a folder in PHP, but before that, you have to check if the folder or directory already exists or not. So In this articl
...read more
Web Technologies
PHP-function
PHP-file-handling
Picked
PHP
PHP-Questions
How to extract extension from a filename using PHP ?
Last Updated: 06 December 2021
In this article, we will see how to extract the filename extension in PHP, along with understanding their implementation through the example
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP-Questions
PHP php.ini File Configuration
Last Updated: 19 July 2024
At the time of PHP installation, php.ini is a special file provided as a default configuration file. It's a very essential configuration fil
...read more
Web Technologies
PHP-file-handling
PHP
PHP Programs
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
PHP
3.8k+ articles
PHP-function
2.2k+ articles
PHP Programs
610+ articles
PHP-Questions
410+ articles
PHP-basics
93+ articles
PHP-date-time
90+ articles
Deleting all files from a folder using PHP
Last Updated: 08 January 2019
In PHP, files from a folder can be deleted using various approaches and inbuilt methods such as unlink, DirectoryIterator and DirectoryRecur
...read more
Web Technologies
PHP-file-handling
Picked
PHP
PHP Programs
How to Log Errors and Warnings into a File in PHP?
Last Updated: 19 July 2024
In PHP, errors and warnings can be logged into a file by using a PHP script and changing the configuration of the php.ini file. Two such app
...read more
Web Technologies
PHP-basics
PHP-file-handling
Picked
PHP
How to get file name from a path in PHP ?
Last Updated: 03 December 2021
In this article, we will see how to get the file name from the path in PHP, along with understanding its implementation through the examples
...read more
Web Technologies
PHP-file-handling
PHP
PHP-Questions
PHP scandir( ) Function
Last Updated: 01 December 2021
In this article, we will see how to get all the files from the current or specified directory using the scandir() function in PHP. The scand
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | fopen( )
Last Updated: 05 April 2025
The fopen() function in PHP is used to open a file or URL. It returns a file pointer that can be used with other functions like fread(), fwr
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP rename( ) Function
Last Updated: 23 September 2024
The rename() function in PHP is an inbuilt function that is used to rename a file or directory. It attempts to change an old name of a file
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | unlink() Function
Last Updated: 09 April 2025
The unlink() function in PHP is used to delete a file from the filesystem. It does not delete directories. For that, you would need to use r
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP file_get_contents() Function
Last Updated: 31 July 2024
In this article, we will see how to read the entire file into a string using the file_get_contents() function, along with understanding thei
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP file_exists( ) Function
Last Updated: 25 September 2024
The file_exists() function in PHP is an inbuilt function which is used to check whether a file or directory exists or not. The path of the
...read more
Web Technologies
PHP-file-handling
PHP
PHP | file_put_contents() Function
Last Updated: 03 May 2018
The file_put_contents() function in PHP is an inbuilt function which is used to write a string to a file. The file_put_contents() function c
...read more
Web Technologies
PHP-file-handling
PHP
PHP dirname( ) Function
Last Updated: 26 June 2023
The dirname() function in PHP is an inbuilt function which is used to return the directory name of a given path. The dirname() function is u
...read more
Web Technologies
PHP-file-handling
PHP
PHP copy( ) Function
Last Updated: 26 June 2023
The copy() function in PHP is an inbuilt function which is used to make a copy of a specified file. It makes a copy of the source file to th
...read more
Web Technologies
PHP-file-handling
PHP
1
2
3
4
5
6
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !