File
[ class tree: File ] [ index: File ] [ all elements ]

File: File.php

Source Location: /File-0.9.2/File.php

Classes:

File

Page Details:

Class for handling files

A class with common functions for writing, reading and handling files and directories

Example 1: $stdin = File::readAll('php://stdin');

Example 2: while ($data = File::read('/blaat/bar')) { // Code... }

Includes:

require_once('PEAR.php') [line 41]
require_once('System.php') [line 42]

FILE_DEFAULT_READSIZE [line 48]

FILE_DEFAULT_READSIZE = 1024,true
The default number of bytes for reading

[ Top ]



FILE_LOCK_EXCLUSIVE [line 78]

FILE_LOCK_EXCLUSIVE = LOCK_EX,true
Use this when an exclusive (write) lock is required

[ Top ]



FILE_LOCK_SHARED [line 72]

FILE_LOCK_SHARED = LOCK_SH,true
Use this when a shared (read) lock is required

[ Top ]



FILE_MODE_APPEND [line 66]

FILE_MODE_APPEND = 'ab',true
Mode to use for appending to files

[ Top ]



FILE_MODE_READ [line 54]

FILE_MODE_READ = 'rb',true
Mode to use for reading from files

[ Top ]



FILE_MODE_WRITE [line 60]

FILE_MODE_WRITE = 'wb',true
Mode to use for truncating files, then writing

[ Top ]



Documentation generated on Sun, 16 May 2004 05:04:58 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.