File_Fortune::setHeaderFile

File_Fortune::setHeaderFile() – Set header file name

Synopsis

require_once 'File/Fortune.php';

File_Fortune File_Fortune::setHeaderFile ( string $headerFile )

Описание

Fortune files consist of an ASCII file containing fortunes separated by a delimiter, and a binary header file that contains meta information such as the delimter used, number of fortunes, minimum and maximum length of fortunes contained in the file, and the offsets where each fortune exist in the file.

In most cases, this file is simply the name of the fortune file plus the extension 'dat', and File_Fortune will automatically detect this. If this is not the case, however, you may explicitly set the header file name using this method.

Parameter

string $headerFile

Throws

throws no exceptions thrown

Замечание

This function can not be called statically.

    Поддержать сайт на родительском проекте КГБ