Functions


file_overwrite ($file, $data)

  • Access: public
  • Return: boolean

Overwrite the specified file (or the file contained in the $absolute
property) with the specified $data.

Please note that here the parameters are reversed from how they
appear in the File class, because the $file parameter is required.
This function does not operate on a global instance of File, as
some other functions of its type do.


file_append ($file, $data)

  • Access: public
  • Return: boolean

Append to the specified file (or the file contained in the $absolute
property) with the specified $data.

Please note that here the parameters are reversed from how they
appear in the File class, because the $file parameter is required.
This function does not operate on a global instance of File, as
some other functions of its type do.


file_rand ($path, $ext = false)

  • Access: public
  • Return: string

Alias of File::rand(). Returns a random file from the specified
directory.


file_determine ($list, $path = false)

  • Access: public
  • Return: string

Alias of File::determine(). Returns the first file that exists
from the specified list.

Return to Top

Copyright © 2008 Sitellite CMS Project

Powered by Sitellite 5.0 Content Management System