PHP
Execute external command which does not need standard input/output
in PHP
Execute external command which does not need standard input/output. In this sample, execute touch command on Linux to create a file "panda.txt", by system function of php.
command.php
<?php
system('touch panda.txt');
// Please write error handling as needed
?>
Result
$ ls
command.php
$ php command.php
$ ls
command.php panda.txt