PHP popen () fungsi
Definisi dan Penggunaan
popen () fungsi menggunakan parameter perintah untuk membuka pointer file proses.
Jika terjadi kesalahan, fungsi mengembalikan SALAH.
tatabahasa
popen(command,mode)
参数 | 描述 |
---|---|
command | 必需。规定要执行的命令。 |
mode | 必需。规定连接模式。 可能的值:
|
contoh
<?php
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>
Lengkapi manual PHP Filesystem Referensi