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

Return value

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


This function can not be called statically.

Check PHP version (Previous) Check SAPI backend (Next)
Last updated: Wed, 25 Nov 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.