Join Up!
104886 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previouspclosereadfilenext
Last updated: Sun, 27 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to German | Spanish

popen

(PHP 3, PHP 4 )

popen -- Otevře procesový soubor (rouru)

Popis

int popen ( string command, string mode)

Otevře rouru do procesu spuštěného rozštěpením stávajícího procesu následným a spuštěním programu specifikovaného parametrem command.

Vrací deskriptor souboru identický s tím, který vrací funkce fopen(), je však vždy pouze jednosměrný (může být otevřen pro čtení nebo zápis, nikoli současně) a na závěr musí být zavřen pomocí pclose(). Tento deskriptor může být použit funkcemi fgets(), fgetss(), a fputs().

Nastane-li chyba, vrací FALSE.

$fp = popen ("/bin/ls", "r");

Viz také pclose().

User Contributed Notes
popen
add a note about notes
There are no user contributed notes for this page.
previouspclosereadfilenext
Last updated: Sun, 27 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST