Learning PHP and MySQL

Example 11-29 Executing df and displaying the results

<?php exec("df",$output_lines,$return_value);
echo  (
"Command  returned  a  value  of  $return_value.");
echo  
"</pre>";
foreach  (
$output_lines  as  $output)  {
  
echo  "$o";
}
echo  "</pre>";
?>

For our system, we get the screen in Figure 11-23.

Posted by on 08/19 at 08:52 AM

Next entry: Example 12-1 Creating a table from a PHP page in create_table.php

Previous entry: Example 11-28 Processing an uploaded file

<< Back to main