Functions Related to file from filelib.php
Function Name Description
($text)Modifies the content of the uploaded file byadding html headers and giving some look andfeel to the uploaded file text.
($filename,$mimetype, $ranges)Send requested byte range of file.
($filename,$retbytes=true)Improves memory consumption and works aroundbuggy readfile()
($location)Recursively delete the file or folder withpath $location. That is, if it is a filedelete it. If it is a folder, delete all itscontent then delete it. If $location doesnot exist to start, that is not consideredan error.
($file, $records, $table= NULL)Write all the records into CSV file.
($file, $table)Retrieve all the records from the CSV fileand if $table exist than return all the$row to the form.
($path,$filename,$lifetime='default',$filter=0,$pathisstring=false,$forcedownload=false, $mimetype='')Handles the sending of file data to theuser's browser, including support forbyteranges etc.
($path)Call internally by
functionto remove the instance of the file from tempfolder.
($path, $filename,$pathisstring=false)Handles the sending of temporary file touser, download is forced. File is deletedafter abort or successful sending.
($mimetype,$capitalise=false)Obtains descriptions for file types (e.g.'Microsoft Word document') from themimetypes.php language file.Checks for other type which are having noheader description like ‘application/pdf’format.