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
39.4k+ articles
DSA
22.4k+ articles
Python
20.2k+ articles
Experiences
17k+ articles
PHP
3.9k+ 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 write Into a File in PHP ?
Last Updated: 31 May 2023
In this article, we are going to discuss how to write into a text file using the PHP built-in fwrite() function.The fwrite() function is use
...read more
Web Technologies
PHP-function
PHP-file-handling
Picked
PHP
PHP-Questions
How to get names of all the subfolders and files present in a directory using PHP?
Last Updated: 19 April 2023
Given the path of the folder and the task is to print the names of subfolders and files present inside them.Explanation: In our PHP code, in
...read more
Web Technologies
PHP-file-handling
PHP
PHP Programs
PHP Filesystem Functions Complete Reference
Last Updated: 25 January 2023
The Filesystem function is used to access and manipulate filesystem. It is the part of PHP code so no need to install these functions. For a
...read more
Web Technologies
PHP-file-handling
PHP
Similar Topics
Web Technologies
39.4k+ articles
DSA
22.4k+ articles
Python
20.2k+ articles
Experiences
17k+ articles
PHP
3.9k+ articles
PHP-function
2.2k+ articles
PHP Programs
610+ articles
PHP-Questions
410+ articles
PHP-basics
93+ articles
PHP-date-time
90+ articles
PHP | getcwd( ) Function
Last Updated: 11 July 2018
The getcwd() function in PHP is an inbuilt function which is used to return the current working directory. This function does not accepts an
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | fwrite( ) Function
Last Updated: 19 June 2018
The fwrite() function in PHP is an inbuilt function which is used to write to an open file. The fwrite() function stops at the end of the fi
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | fputcsv( ) Function
Last Updated: 13 June 2018
The fputcsv() function in PHP is an inbuilt function which is used to format a line as CSV(comma separated values) file and writes it to an
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | fread( )
Last Updated: 05 April 2025
The fread() function is used to read a file or a stream of data in PHP. It reads up to a specified number of bytes from an open file. The fu
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | is_uploaded_file( ) Function
Last Updated: 08 June 2018
The is_uploaded_file() function in PHP is an inbuilt function which is used to check whether the specified file uploaded via HTTP POST or no
...read more
Web Technologies
PHP-file-handling
PHP
PHP | link( ) Function
Last Updated: 09 December 2021
The link() creates a hard link for a specified target. The target and the link are passed as parameters to the link() function and it return
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | mkdir( ) Function
Last Updated: 01 June 2018
The mkdir() creates a new directory with the specified pathname. The path and mode are sent as parameters to the mkdir() function and it ret
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | readfile( ) Function
Last Updated: 04 September 2019
The readfile() function in PHP is an inbuilt function which is used to read a file and write it to the output buffer. The filename is sent a
...read more
Web Technologies
PHP-function
PHP-file-handling
PHP
PHP | filesize( ) Function
Last Updated: 05 May 2018
The filesize() function in PHP is an inbuilt function which is used to return the size of a specified file. The filesize() function accepts
...read more
Web Technologies
PHP-file-handling
PHP
PHP | filetype( ) Function
Last Updated: 05 May 2018
The filetype() function in PHP is an inbuilt function which is used to return the file type of a specified file or a directory.The filetype(
...read more
Web Technologies
PHP-file-handling
PHP
PHP | filemtime( ) Function
Last Updated: 03 May 2018
The filemtime() function in PHP is an inbuilt function which is used to return the last time of a specified file when its content was modifi
...read more
Web Technologies
PHP-file-handling
PHP-date-time
PHP
PHP basename( ) Function
Last Updated: 26 June 2023
The basename() function in PHP is an inbuilt function which is used to return the base name of a file if the path of the file is provided as
...read more
Web Technologies
PHP-file-handling
PHP
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
5
6
>>
Last
First
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 !