PHP pclose() İşlevi
❮ PHP Dosya Sistemi ReferansıÖrnek
Komut parametresinde belirtilen programa bir boru açın ve kapatın :
<?php
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>
Tanım ve Kullanım
pclose() işlevi, popen() tarafından açılan bir boruyu kapatır .
Sözdizimi
pclose(pipe)
Parametre Değerleri
Parameter | Description |
---|---|
pipe | Required. Specifies the pipe opened by popen() |
Teknik detaylar
Geri dönüş değeri: | Sonlandırma durumu, başarısızlık durumunda -1 |
---|---|
PHP Sürümü: | 4.0+ |
❮ PHP Dosya Sistemi Referansı