File_Fortune::__construct() – Constructor


require_once 'File/Fortune.php';

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


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.


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 no exceptions thrown


This function can not be called statically.

Common use cases. (Previous) Add a new fortune (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.