PEAR_Dependency::checkProgram()

PEAR_Dependency::checkProgram() -- Check external program

概要

require_once 'PEAR/Dependency.php';

mixed PEAR_Dependency::checkProgram (mixed &$errmsg, string $program)

説明

External program check method. Looks for executable files in directories listed in the PATH environment variable.

パラメータ

mixed &$errmsg

this variable will contains an error message, if check fail

string $program

which program to look for

返り値

mixed - FALSE if dependency could be resolved successfully(!); or an PEAR_DEPENDENCY_* constant in case of unresolved dependency.

注意

この関数は、スタティックにコールする ことはできません。