Calling the man Command : System Command « Development « PHP
- PHP
- Development
- System Command
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