Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

file Class Reference
[File-Class]

List of all members.

Detailed Description

< Modul name


Public Member Functions

 file ()
 Class Constructor.
 _file ()
 Class Destructor.
 file_append ($file, $data)
 Append data to a file.
 file_append_bypointer ($filepointer, $data)
 Append data to a file by pointer.
 file_check ($file)
 Check if file exist.
 file_delete ($file)
 Erase a file.
 file_flush_errors ()
 Will flush the complete file error buffer.
 file_get_errorlist ()
 Return error string list.
 file_getsize ($file)
 Return file size in kByte.
 file_getsize_byte ($file)
 Return file size in Byte.
 file_getdata_normal ($file)
 Load file data into a variable.
 file_getdata_normal_bypointer ($fpointer, $lenght=65535)
 Load file data into a variable by pointer.
 file_getdata ($file)
 Load file data into array.
 file_getdata_reverse ($file)
 Load file data reverse into array. This function is only written for server with PHP3. In newer PHP versions use the array_reverse() function.
 file_get_column_reverse ($file, $nr, $sign)
 Load special column reverse out of file.
 file_get_column ($file, $nr, $sign)
 Load a special column out of a file.
 file_getheader ($file)
 Return file header (Only first line of file).
 file_nrlines ($file)
 Returns number of file lines.
 file_upload ($file, $name, $folder)
 Upload a data file to special folder.

Public Attributes

 $file_error_hdl = 0


Constructor & Destructor Documentation

function file::file  ) 
 

Class Constructor.


Member Function Documentation

function file::_file  ) 
 

Class Destructor.

function file::file_append file,
data
 

Append data to a file.

Parameters:
$file = Filename
$data = Data to write
Returns:
Returns 'true' if everything has been all right else 'false'.

function file::file_append_bypointer filepointer,
data
 

Append data to a file by pointer.

Parameters:
$filepointer = Filepointer
$data = Data to write
Returns:
Returns 'true' if everything has been all right else 'false'.

function file::file_check file  ) 
 

Check if file exist.

Parameters:
$file = Filename
Returns:
Returns 'true' if everything has been all right else 'false'.

function file::file_delete file  ) 
 

Erase a file.

Parameters:
$file = Filename
Returns:
Returns 'true' if everything has been all right else 'false'.

function file::file_flush_errors  ) 
 

Will flush the complete file error buffer.

Returns:
Returns 'true' if everything has been all right else 'false'.

function file::file_get_column file,
nr,
sign
 

Load a special column out of a file.

Parameters:
$file = Filename
$nr = Number of column
$sign = Seperate sign
Returns:
Data array

function file::file_get_column_reverse file,
nr,
sign
 

Load special column reverse out of file.

Parameters:
$file = Filename
$nr = Number of column
$sign = Seperate sign
Returns:
Data array

function file::file_get_errorlist  ) 
 

Return error string list.

Returns:
Error list array

function file::file_getdata file  ) 
 

Load file data into array.

Parameters:
$file = Filename
Returns:
Data array

function file::file_getdata_normal file  ) 
 

Load file data into a variable.

Parameters:
$file = Filename
Returns:
File data

function file::file_getdata_normal_bypointer fpointer,
lenght = 65535
 

Load file data into a variable by pointer.

Parameters:
$fpointer = Pointer the file
$lenght = data lenght to read
Returns:
File data

function file::file_getdata_reverse file  ) 
 

Load file data reverse into array. This function is only written for server with PHP3. In newer PHP versions use the array_reverse() function.

Parameters:
$file = Filename
Returns:
Data array

function file::file_getheader file  ) 
 

Return file header (Only first line of file).

Parameters:
$file = Filename
Returns:
Header of file

function file::file_getsize file  ) 
 

Return file size in kByte.

Parameters:
$file = Filename
Returns:
Filesize in kByte

function file::file_getsize_byte file  ) 
 

Return file size in Byte.

Parameters:
$file = Filename
Returns:
Filesize in Byte

function file::file_nrlines file  ) 
 

Returns number of file lines.

Parameters:
$file = Filename
Returns:
Number of lines

function file::file_upload file,
name,
folder
 

Upload a data file to special folder.

Parameters:
$file = Filename & folder from input field
$name = Filename from input field
$folder = File folder ( set to "" if no folder is needed )
Returns:
Returns 'true' if everything has been all right else 'false'.


Member Data Documentation

file::$file_error_hdl = 0
 

Error message handler


The documentation for this class was generated from the following file:
Generated on Fri Aug 26 08:13:53 2005 for PHP-Lib-Xtreme by  doxygen 1.4.3