Console_Getopt::readPHPArgv
Описание
Reads the $argv PHP array across different PHP configurations. Will take care of the register_globals and register_argc_argv ini directives.
Throws
Таблица 34-1. Возможные значения PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
NULL | "Console_Getopt: Could not read cmd args (register_argc_argv=Off?)" | PHP does not provide the command-line arguments for the script. | Check "register_argc_argv" in your php.ini |
Пример
Пример 34-1. Using readPHPArgv()
|
Пред. | Начало | След. |
Console_Getopt::getopt | Уровень выше | Базы данных |