PHP Manual

PHP function popen()

2019-09-11T08:04:04.000Z

Obsah článku

Availability in PHP 4.0

Opens process file pointer

Parameters

Parameter Data type Default value Note
$command string not The command
$mode string not The mode

Return values

resource

a file pointer identical to that returned by
fopen, except that it is unidirectional (may
only be used for reading or writing) and must be closed with
pclose. This pointer may be used with
fgets, fgetss, and
fwrite.



If an error occurs, returns false.

Other resources

Official popen documentation

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
291.

V jiných jazycích

Status:
All systems normal.
2025