• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/85

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

85 Cards in this Set

  • Front
  • Back
Returns filename component of path. Given a string containing a path to a file, this function will return the base name of the file.
string basename ( string $path [, string $suffix ] )
Changes file group
bool chgrp ( string $filename , mixed $group )
Changes file mode
bool chmod ( string $filename , int $mode )
Changes file owner
bool chown ( string $filename , mixed $user )
Clears file status cache of caching file functions
void clearstatcache ( void )
Copies file
bool copy ( string $source , string $dest [, resource $context ] )
Returns directory name component of path. Given a string containing a path to a file, this function will return the name of the directory.
string dirname ( string $path )
Returns available space in directory
float disk_free_space ( string $directory )
Given a string containing a directory, this function will return the total number of bytes on the corresponding filesystem or disk partition.
float disk_total_space ( string $directory )
Alias of disk_free_space()
diskfreespace
Closes an open file pointer
bool fclose ( resource $handle )
Tests for end-of-file on a file pointer
bool feof ( resource $handle )
Flushes the output to a file. This function forces a write of all buffered output to the resource pointed to by the file handle .
bool fflush ( resource $handle )
Gets character from file pointer
string fgetc ( resource $handle )
Gets line from file pointer and parse for CSV fields
array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure [, string $escape ]]]] )
Gets a line from file pointer.
string fgets ( resource $handle [, int $length ] )
Gets line from file pointer and strip HTML tags
string fgetss ( resource $handle [, int $length [, string $allowable_tags ]] )
Checks whether a file or directory exists
bool file_exists ( string $filename )
Reads entire file into a string. Returns file in a String, not array.
string file_get_contents ( string $filename [, int $flags [, resource $context [, int $offset [, int $maxlen ]]]] )
Write a string to a file
int file_put_contents ( string $filename , mixed $data [, int $flags [, resource $context ]] )
Reads entire file into an array
array file ( string $filename [, int $flags [, resource $context ]] )
Gets last access time of file
int fileatime ( string $filename )
Gets inode change time of file
int filectime ( string $filename )
Gets file group
int filegroup ( string $filename )
Gets file inode
int fileinode ( string $filename )
Gets file modification time
int filemtime ( string $filename )
Gets file owner
int fileowner ( string $filename )
Gets file permissions
int fileperms ( string $filename )
Gets file size
int filesize ( string $filename )
Gets file type
string filetype ( string $filename )
Portable advisory file locking
bool flock ( resource $handle , int $operation [, int &$wouldblock ] )
Match filename against a pattern
bool fnmatch ( string $pattern , string $string [, int $flags ] )
Opens file or URL

'r' Open for reading only; place the file pointer at the beginning of the file.
'r+' Open for reading and writing; place the file pointer at the beginning of the file.
'w' Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
'w+' Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
'a' Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
'a+' Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
'x' Create and open for writing only; place the file pointer at the beginning of the file. If the file already exists, the fopen() call will fail by returning FALSE and generating an error of level E_WARNING. If the file does not exist, attempt to create it. This is equivalent to specifying O_EXCL|O_CREAT flags for the underlying open(2) system call.
'x+' Create and open for reading and writing; place the file pointer at the beginning of the file. If the file already exists, the fopen() call will fail by returning FALSE and generating an error of level E_WARNING. If the file does not exist, attempt to create it. This is equivalent to specifying O_EXCL|O_CREAT flags for the underlying open(2) system call.
resource fopen ( string $filename , string $mode [, bool $use_include_path [, resource $context ]] )
Output all remaining data on a file pointer
int fpassthru ( resource $handle )
Format line as CSV and write to file pointer
int fputcsv ( resource $handle , array $fields [, string $delimiter [, string $enclosure ]] )
Alias of fwrite()
fputs()
Binary-safe file read
string fread ( resource $handle , int $length )
Parses input from a file according to a format
mixed fscanf ( resource $handle , string $format [, mixed &$... ] )
Seeks on a file pointer. Sets the file position indicator for the file referenced by handle .
int fseek ( resource $handle , int $offset [, int $whence ] )
Gets information about a file using an open file pointer
array fstat ( resource $handle )
Tells file pointer read/write position
int ftell ( resource $handle )
Truncates a file to a given length
bool ftruncate ( resource $handle , int $size )
Binary-safe file write. writes the contents of string to the file stream pointed to by handle .
int fwrite ( resource $handle , string $string [, int $length ] )
Find pathnames matching a pattern
array glob ( string $pattern [, int $flags ] )
Tells whether the filename is a directory
bool is_dir ( string $filename )
Tells whether the filename is executable
bool is_executable ( string $filename )
Tells whether the filename is a regular file
bool is_file ( string $filename )
Tells whether the filename is a symbolic link
bool is_link ( string $filename )
Tells whether the filename is readable
bool is_readable ( string $filename )
Tells whether the file was uploaded via HTTP POST
bool is_uploaded_file ( string $filename )
Tells whether the filename is writable
bool is_writable ( string $filename )
Alias of is_writable()
is_writeable
Changes group ownership of symlink
bool lchgrp ( string $filename , mixed $group )
Changes user ownership of symlink
bool lchown ( string $filename , mixed $user )
Create a hard link
bool link ( string $target , string $link )
Gets information about a link
int linkinfo ( string $path )
Gives information about a file or symbolic link
array lstat ( string $filename )
Makes directory
bool mkdir ( string $pathname [, int $mode [, bool $recursive [, resource $context ]]] )
Moves an uploaded file to a new location
bool move_uploaded_file ( string $filename , string $destination )
Parse a configuration file
array parse_ini_file ( string $filename [, bool $process_sections ] )
Returns information about a file path. dirname, basename, extension and filename.
mixed pathinfo ( string $path [, int $options ] )
Closes process file pointer opened with popen()
int pclose ( resource $handle )
Opens process file pointer (forking process)
resource popen ( string $command , string $mode )
Reads a file and writes it to the output buffer.
int readfile ( string $filename [, bool $use_include_path [, resource $context ]] )
Returns the target of a symbolic link
string readlink ( string $path )
Returns canonicalized absolute pathname
string realpath ( string $path )
Renames a file or directory. Also used to move files.
bool rename ( string $oldname , string $newname [, resource $context ] )
Rewind the position of a file pointer
bool rewind ( resource $handle )
Removes directory
bool rmdir ( string $dirname [, resource $context ] )
Alias of stream_set_write_buffer()
set_file_buffer()
Gives information about a file as array:

0 dev device number
1 ino inode number
2 mode inode protection mode
3 nlink number of links
4 uid userid of owner
5 gid groupid of owner
6 rdev device type, if inode device
7 size size in bytes
8 atime time of last access (Unix timestamp)
9 mtime time of last modification (Unix timestamp)
10 ctime time of last inode change (Unix timestamp)
11 blksize blocksize of filesystem IO *
12 blocks number of blocks allocated *
array stat ( string $filename )
Creates a symbolic link
bool symlink ( string $target , string $link )
Create file with unique file name
string tempnam ( string $dir , string $prefix )
Creates a temporary file
resource tmpfile ( void )
Attempts to set the access and modification times of the file named in the filename parameter to the value given in time
bool touch ( string $filename [, int $time [, int $atime ]] )
Changes the current umask
int umask ([ int $mask ] )
Deletes a file
bool unlink ( string $filename [, resource $context ] )
fopen: Open for reading only; place the file pointer at the beginning of the file.
r
fopen: Open for reading and writing; place the file pointer at the beginning of the file.
r+
fopen: Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
w
fopen: Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
w+
fopen: Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
a
fopen: Open for reading and writing; place the file pointer at the end of the file. If the file does not exist, attempt to create it.
a+
fopen: Create and open for writing only; place the file pointer at the beginning of the file. If the file already exists, the fopen() call will fail by returning FALSE and generating an error of level E_WARNING. If the file does not exist, attempt to create it. This is equivalent to specifying O_EXCL|O_CREAT flags for the underlying open(2) system call.
x
fopen: Create and open for reading and writing; place the file pointer at the beginning of the file. If the file already exists, the fopen() call will fail by returning FALSE and generating an error of level E_WARNING. If the file does not exist, attempt to create it. This is equivalent to specifying O_EXCL|O_CREAT flags for the underlying open(2) system call.
x+