inputfileThe inputfile class manages files for input. It opens, reads and closes files in input-only mode.
Located in /file-defs.php (line 169)
| Class | Description |
|---|---|
csv_inputfile
|
CSV Inputfile class Manage CSV-formatted files for input. |
stylesheet
|
Open a file which contains a stylesheet and read in the style settings. This is a special case of inputfile. |
quickfile_read
|
This is a derived class from inputfile and is a quick way of grabbing all content of a file in a single hit. The resulting string is available as the class 'content' variable, and the variable 'readok' indicates whether the read was a success. File is read, then immediately closed. |
mixed
$content
= "" (line 182)
Content of file after readall()
mixed
$datafname
= "" (line 176)
The full path to the file
mixed
$dir
= "" (line 174)
The directory prefix (if any) of the file
mixed
$filesize
= 0 (line 180)
Size of opened file in bytes
mixed
$fp
(line 186)
The file pointer
mixed
$name
= "" (line 172)
The file name
mixed
$opened
= false (line 178)
True if file was opened
Constructor Open the given file for input.
Open a new file, or the default file as defined by the path in the class variable 'datafname'. If $path is defined then this becomes the new default file.
Reads the next line of the file, up to max chars specified.
Documentation generated by phpDocumentor 1.3.0RC3