Calling the man Command : System Command « Development « PHP






Calling the man Command

<html>
<head>
<title>Calling the man command.</title>
</head>
<body>
<form>
   <input type="text" value="<?php print  $manpage; ?>" name="manpage">
</form>
<pre>
<?php
if ( isset($manpage) )
     system(  "man $manpage | col -b" );
?>
</pre>
</table>
</body>
</html>

           
       








Related examples in the same category

1.Porter scanner
2.Ping server
3.Execute shell command 'dir'
4.Ping command
5.Execute help command and check its output
6.Using exec() to Produce a Directory Listing
7.Using popen() to Read the Output of the UNIX who Command
8.Using popen() to Pass Data to the column Application