Wednesday, April 9, 2008

Shell script 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;
?>

No comments:

Post a Comment