Explain the difference between exec() vs system() vs passthru() ?
Explain the difference between exec() vs system() vs passthru() ?
In PHP, the exec(), system(), and passthru() functions are used to execute external programs, but they handle the output differently:
exec():
FALSE on error.$output = exec('ls -l');
echo $output;
system():
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.