Skip to content

Tag Archives: PHP-file-handling

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… Read More
To check whether any file is existing or not then we can use the below-mentioned PHP function. To find the existence of the files, we… Read More
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… Read More
In this article, we will see how to extract the filename extension in PHP, along with understanding their implementation through the examples. There are a… Read More
Given the path of the folder and the task is to print names of subfolders and files present inside them.Explaination: In our PHP code, initially,… Read More
At the time of PHP installation, php.ini is a special file provided as a default configuration file. It’s very essential configuration file which controls, what… Read More
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… Read More
In PHP, files from a folder can be deleted using various approaches and inbuilt methods such as unlink, DirectoryIterator and DirectoryRecursiveIterator. Some of these approaches… Read More
In PHP, errors and warnings can be logged into a file by using a php script and changing configuration of php.ini file. Two such approaches… Read More
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
The zip_entry_open() function is an inbuilt function in PHP which is used to open a zip entry archive for reading. Opening a file or a… Read More
The zip_entry_read() function is an inbuilt function in PHP which is used to read the contents from an opened zip archive entry. The zip entry… Read More
The zip_entry_name() function is an inbuilt function in PHP which is used to return the name of a zip archive entry. The zip entry resource… Read More
The zip_entry_filesize() function is an inbuilt function in PHP which is used to return the original file size of a zip archive entry before compression.… Read More
The zip_read() function is an inbuilt function in PHP which is used to read an entity present in the opened zip archive. The zip resource… Read More

Start Your Coding Journey Now!