My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Functions  

Functions

This list contains the functions of the phpmysqlfs api.

The list

dbinit()

Initializes a new database connection, this function is to be called from within your programme and from an api function.

filelist()

Returns a matrix with the files and their info. The matrix structure are like this:

  • retval[$i]['name'] - The filename
  • retval[$i]['type'] - File mime type
  • retval[$i]['size'] - Filesize
  • retval[$i]['meta'] - File meta data tags
  • retval[$i]['chngdate'] - Changedate

filelistbymeta($meta)

Returns a matrix with the files tagged by this meta tag. Matrix structure are the same as filelist()

putfile($file, $meta)

Inserts a file into the fs/database. The $file should be the $_FILES['uploadedfile'] array or an array with the same structure. $meta is the meta data tags, separated by a space.

Powered by Google Project Hosting