Compzone.Org :: Podręcznik PHP :: expect_popen
Jaki jest Twój wiek?
40 - 59
26 - 39
19 - 25
13 - 18
12 i mniej
60 i więcej
Sonda Wyniki

Add to Google

expect_popen

(no version information, might be only in CVS)

expect_popen -- Exectute command via Bourne shell, and open the PTY stream to the process

Opis

resource expect_popen ( string command )

Execute command via Bourne shell, and open the PTY stream to the process.

Parametry

command

Command to execute.

Zwracane wartości

Returns an open PTY stream to the process'es stdio, stdout and stderr.

On failure this function returns FALSE.

Przykłady

Przykład 1. expect_popen() example

<?php
// Login to the PHP.net CVS repository:
$stream expect_popen ("cvs -d :pserver:anonymous@cvs.php.net:/repository login");
sleep (3);
fwrite ($stream"phpfi\n");
fclose ($stream);
?>

Patrz także

popen()
Copyright © 2005-2006 Compzone.Org. Kopiowanie i wykorzystywanie materiałów zawartych na tej stronie bez zgody autora zabronione!