NAME ^

php_file.pir - PHP file Standard Library

DESCRIPTION ^

Functions ^

bool copy(string source_file, string destination_file)

Copy a file

NOT IMPLEMENTED.

bool fclose(resource fp)

Close an open file pointer

bool feof(resource fp)

Test for end-of-file on a file pointer

NOT IMPLEMENTED.

bool fflush(resource fp)

Flushes output

NOT IMPLEMENTED.

string fgetc(resource fp)

Get a character from file pointer

NOT IMPLEMENTED.

array fgetcsv(resource fp [,int length [, string delimiter [, string enclosure]]])

Get line from file pointer and parse for CSV fields

NOT IMPLEMENTED.

string fgets(resource fp[, int length])

Get a line from file pointer

NOT IMPLEMENTED.

string fgetss(resource fp [, int length, string allowable_tags])

Get a line from file pointer and strip HTML tags

NOT IMPLEMENTED.

array file(string filename [, int flags[, resource context]])

Read entire file into an array

NOT IMPLEMENTED.

string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])

Read the entire file into a string

STILL INCOMPLETE.

int file_put_contents(string file, mixed data [, int flags [, resource context]])

Write/Create a file with contents data and return the number of bytes written

NOT IMPLEMENTED.

bool flock(resource fp, int operation [, int &wouldblock])

Portable file locking

NOT IMPLEMENTED.

bool fnmatch(string pattern, string filename [, int flags])

Match filename against pattern

NOT IMPLEMENTED.

resource fopen(string filename, string mode [, bool use_include_path [, resource context]])

Open a file or a URL and return a file pointer

STILL INCOMPLETE (see _getmode)

int fpassthru(resource fp)

Output all remaining data from a file pointer

int fputcsv(resource fp, array fields [, string delimiter [, string enclosure]])

Format line as CSV and write to file pointer

NOT IMPLEMENTED.

string fread(resource fp, int length)

Binary-safe file read

NOT IMPLEMENTED.

mixed fscanf(resource stream, string format [, string ...])

Implements a mostly ANSI compatible fscanf()

NOT IMPLEMENTED.

int fseek(resource fp, int offset [, int whence])

Seek on a file pointer

NOT IMPLEMENTED.

array fstat(resource fp)

Stat() on a filehandle

NOT IMPLEMENTED.

int ftell(resource fp)

Get file pointer's read/write position

NOT IMPLEMENTED.

bool ftruncate(resource fp, int size)

Truncate file to 'size' length

NOT IMPLEMENTED.

int fwrite(resource fp, string str [, int length])

Binary-safe file write

NOT IMPLEMENTED.

array get_meta_tags(string filename [, bool use_include_path])

Extracts all meta tag content attributes from a file and returns an array

NOT IMPLEMENTED.

bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])

Create a directory

NOT IMPLEMENTED.

int pclose(resource fp)

Close a file pointer opened by popen()

NOT IMPLEMENTED.

resource popen(string command, string mode)

Execute a command and open either a read or a write pipe to it

NOT IMPLEMENTED.

int readfile(string filename [, bool use_include_path[, resource context]])

Output a file or a URL

STILL INCOMPLETE (see stream_open)

string realpath(string path)

Return the resolved path

NOT IMPLEMENTED.

bool rename(string old_name, string new_name[, resource context])

Rename a file

NOT IMPLEMENTED.

bool rewind(resource fp)

Rewind the position of a file pointer

NOT IMPLEMENTED.

bool rmdir(string dirname[, resource context])

Remove a directory

NOT IMPLEMENTED.

string sys_get_temp_dir()

Returns directory path used for temporary files

NOT IMPLEMENTED.

string tempnam(string dir, string prefix)

Create a unique filename in a directory

NOT IMPLEMENTED.

resource tmpfile(void)

Create a temporary file that will be deleted automatically after use

NOT IMPLEMENTED.

int umask([int mask])

Return or change the umask

NOT IMPLEMENTED.

bool unlink(string filename[, context context])

Delete a file

NOT IMPLEMENTED.


parrot