Class | Description |
---|---|
![]() |
The inputfile class manages files for input. It opens, reads and closes files in input-only mode. |
![]() |
CSV Inputfile class Manage CSV-formatted files for input. |
![]() |
Open a file which contains a stylesheet and read in the style settings. This is a special case of inputfile. |
![]() |
The outputfile class manages files for outputting content. This includes both appending to an existing file, and creating new files. The method used in both cases is to write to a temporary file, and then rename/move it onto the final file path when closefile() is called. |
![]() |
This is a derived class from outputfile and is a quick way of creating a file with content in a single hit. You can check the $created property afterwards to determine success/failure. |
![]() |
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. |
![]() |
Fileupload class. |
![]() |
A generic system configuration file. Extend this for particular types of config file, such as .INI, shell definitions etc. Automatically calls the import_settings() method on instantiation. |
![]() |
A system configuration file in the form of a shell script. These are in the standard NAME=VALUE format, but implemented as 'sh' scripts so that other scripts can use them via '.'. This class is provided to allow Php scripts to easily access the config settings in these too. |
![]() |
A system configuration file in the form of an INI file. These are in the standard NAME=VALUE format, within sections. In this class we ignore the [sections], and just read in all of the NAME=VALUE pairs, stashing them into the 'settings' class var as an array. |
Abandon file on close
Save the file on close
Destination directory access problem
Uploaded file was not of an allowed mime type
Attempt to move a non-uploaded file. Hacking.
Uploaded file exceeded the given maximum size
Failed to move file, filesys error (perms?)
Error code: All ok, no errors
Finally got around to implementing this file content reader for backward compatibility. (Kudos to Nigel McNie). This function file_get_contents will return the entire file as a string.
Returns an array containing full paths to the files in the directory
given by the path. This can be optionally recursive, in which case we will end up with a long list of path/filenames which comprise the whole tree, minus the special files '.' and '..'
Return the file extension from a filepath.
Return the file stem (name without extn) from a filepath.
Make sure path exists A utility function which makes sure a given directory path is made, using mkdir as required. This function assumes that permissions are all as needed.
Return a random unique filename, with optional prefix and an optional extension. The filename is composed from an md5 of microtime(), plus the prefix and extension if given.
Documentation generated by phpDocumentor 1.3.0RC3