Execute shell command 'dir' : System Command « Development « PHP
- PHP
- Development
- System Command
Execute shell command 'dir'
<?php
$dir = shell_exec("dir");
$subject = "Half-hourly file report.";
$body = "The following files are in the current directory : \n\n";
$body .= $dir;
echo $body;
?>
Related examples in the same category