![]() | XXXV. Expect FunctionsIntroduzioneThis extension allows to interact with processes through PTY. You may consider using the expect:// wrapper with the filesystem functions which provide a simpler and more intuitive interface. RequisitiThis module uses the functions of the expect library. You need libexpect version >= 5.43.0. InstallazioneThis PECL extension is not bundled with PHP. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/expect. In PHP 4 this PECL extensions source can be found in the ext/ directory within the PHP source or at the PECL link above. In order to use these functions you must compile PHP with expect support by using the --with-expect[=DIR] configure option. Windows users will enable php_expect.dll inside of php.ini in order to use these functions. In PHP 4 this DLL resides in the extensions/ directory within the PHP Windows binaries download. You may download this PECL extension DLL from the PHP Downloads page or at http://snaps.php.net/. Configurazione di RuntimeIl comportamento di queste funzioni è influenzato dalle impostazioni di php.ini. In order to configure expect extension, there are configuration options in the configuration file php.ini. Tabella 1. Expect Opioni di configurazione
Breve descrizione dei parametri di configurazione.
Tipi di risorseQuesta estensione non definisce alcun tipo di risorsa. Costanti predefiniteQueste costanti sono definite da questa estensione e sono disponibili solo se l'estensione è stata compilata nel PHP o se è stata caricata dinamicamente a runtime.
EsempiThis example connects to the remote host via SSH, and prints the remote uptime.
| ![]() | ||||||||||||||||