I am just trying to list the contents of the current directory, where the script resides?? Can't seem to figure out why it won't execute my shell command?
Code: Select all
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
echo '<pre>';
$last_line = system("dir *.*", $retval);
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>
</body></html>Thanks,
Brad