External
|
|
|
|
<?php //You may need to provide the full path to ls
//If your web-server user has no environment 'path' $line1 = exec('ls -ls', $output, $error);
while (list(,$line) = each($output)){
echo $line, "<BR>n";
}
if ($error){
echo "Unix error code: $error<BR>n";
exit;
}
?>
|
|
|
Usage Example
|
|
|
Rate This Script
|
|
|
|