Using exec() to Produce a Directory Listing : System Command : Development PHP Source Code


PHP Source Code » Development » System Command »

 

Using exec() to Produce a Directory Listing



<html>
<head>
<title>Using exec() to produce a directory listing</title>
</head>
<body>
<?php
exec"ls -al .", $output, $return );
print "<p>Returned: $return</p>";

foreach $output as $file )
   print "$file<br>";
?>
</table>
</body>
</html>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Development
» System Command