What is Filesystem in PHP

In this article I am going to explain about PHP FileSystem.
  • 1472

PHP Filesystem Functions

The PHP filesystem functions allow you to access and manipulate the filesystem. The filesystem have many of functions, and filesystem functions are part of the PHP core.

There are different type of functions in PHP filesystem:

Function Description
basename It returns the filename component of a path.
chgrp It changes file group.
chmod It changes file mode.
chown It changes file mode.
clearstatcache It clears the file status cache.
copy Copy a file.
delete Deletes a file.
dirname It returns directory name component of path.
disk_free_space It returns available space in directory.
disk_total_space It returns total size of a directory.
diskfreespace It returns alias of disk_free_space.
fclose It closes an open file pointer.
feof It tests for end-of-file on an open file.
fflush Flushes the output to a file.
fgetc It gets a character from file pointer.
fgetcsv It parses a line from an open file, checking for CSV fields
fgets It returns a line from an open file.
fgetss It gets line from file pointer and parses for CSV fields.
file It reads entire file into an array.
file_exists It checks whether a file or directory exists.
file_get_contents It reads entire file into a string.
file_put_contains It write a string to a file.
fileatime It gets  last access tile of file.
filectime It gets inode change time of file.
filegroup It returns group id of a file.
fileinode It returns inode no of file.
filemtime It gets modification time.
fileowner It gets file owner.
fileperms It gets file permissions.
filesize It gets file size.


You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.