PHP HandbuchXXXV. Expect FunctionsEinführungThis 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. AnforderungenThis module uses the functions of the expect library. You need libexpect version >= 5.43.0. InstallationDiese PECL Erweiterung ist nicht Teil von PHP. Zusätzliche Informationen, wie neue Releases, Downloads Quelldateien, Maintainerinformation und ein CHANGELOG finden Sie hier: http://pecl.php.net/package/expect.
Für PHP 4 finden Sie die Quellen dieser
PECL Erweiterung im ext/ Verzeichnis
innerhalb der PHP Quellen oder unter dem PECL Link wie
oben angegeben.
In order to use these functions you must compile PHP with expect support
by using the Windows users will enable php_expect.dll inside of php.ini in order to use these functions. Für PHP 4 finden Sie die DLL im extensions/ Verzeichnis der PHP Windows Binärdistribution. Sie können die DLL für diese PECL Erweiterung entweder von PHP Downloads oder von http://snaps.php.net/ herunterladen. Laufzeit KonfigurationDas Verhalten dieser Funktionen wird durch Einstellungen in der php.ini beeinflusst. In order to configure expect extension, there are configuration options in the configuration file php.ini. Tabelle 1. Expect Konfigurationsoptionen
Hier eine kurze Erklärung der Konfigurationsoptionen:
Resource Typenexpect_popen() returns an open PTY stream used by expect_expectl(). Vordefinierte KonstantenFolgende Konstanten werden von dieser Erweiterung definiert und stehen nur zur Verfügung, wenn die Erweiterung entweder statisch in PHP kompiliert oder dynamisch zur Laufzeit geladen wurde.
BeispieleThis example connects to the remote host via SSH, and prints the remote uptime.
|
PHP-Index
Neuzugänge PHP MySQL Tutorials
|
|