Execute shell command 'dir' : System Command : Development PHP Source Code


PHP Source Code » 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 : nn";
$body .= $dir;

echo $body;
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Development
» System Command