Files Flashcards
require()
include php script file (error_fatal)
include()
include php script file (warning)
require_once()
include php scipt file wihout including again
include_once()
include php scipt file wihout including again
set_include_path()
set the include_path configuration option
get_include_path()
return include path
restore_include_path()
set default include path
get_included_files()
return all files included
chdir()
change current directory
chroot()
change current root directory
dir()
return an instance of the Directory class
opendir()
open a directory handle
getcwd()
get current work directory
readdir()
read entry directory handle
rewinddir()
rewind directory handle
scandir()
list files and directories inside the specified path
dirname()
return dir path of a file path string
is_dir()
check if a file is a directory
mkdir()
create dir
rmdir()
remove empty dir
basename()
return filename of a path filename
chgrp()
change file group
chmod()
change file mode
chown()
change file owner
copy()
copy a file
disk_free_space()
return avaliable space in disk of dir
disk_total_space()
return total size of disk or dir
file_exists()
check if file or dir exists
file_get_contents()
get content file into string
file_put_contents()
put content string into a file
file()
get content file into array
filesize()
get file size
rename()
rename a file or a dir
stat()
give information about a file
tempnam()
create file with unique file name
fnmatch()
match filenames
glob()
find pathnames matching a pattern
link()
create a hard link
symlink()
create a symbolic link
linkinfo()
get information about a link
readlink()
return target of a symbolic link
realpath()
return absolute real path of link
move_upload_file()
move an uploaded file to a new location
parse_ini_file()
parse a .ini file
pathinfo()
return info about file path
readfile()
outputs a file
touch()
uptime file
umask()
change the current umask
unlink()
delete a file
fileatime()
get last access
fiflemtime()
get last modified
filegroup()
get group
fileinode()
get inode
fileowner()
get owner
fileperms()
get permission
filetype()
get type
is_file()
check if is a regular file
is_executable()
if is an executable flie
if_link()
check if is a link
is_readable()
check if is readable
is_uploaded_file()
check if is uploaded
is_writable()
check if is writable