File_Fortune::__construct

File_Fortune::__construct() – Constructor

Synopsis

require_once 'File/Fortune.php';

File_Fortune File_Fortune::__construct ( string|array $file = null , string $headerFile = null )

Description

Optionally pass a filename or directory name to set the fortune file or directory, and, if passing a fortune file name, optionally pass the name of the header file.

Parameter

string|array $file

Fortune file name, or name of a directory containing fortune files.

If passing an array, array of fortune files names.

string $headerFile

Optional location of binary header file to associate with file passed to $file; see setHeader() for more information.

Throws

throws no exceptions thrown

Note

This function can not be called statically.