« sysctl.conf Sample | Main | Known Vulnerabilities in Ruby-1.8.2_3 »
June 24, 2005
Execute Commands in PHP
Sometimes I login to the server only for running a simple command, such as uptime. It can be more convenient to do this with a simple PHP page, for example, the following code will display the the output of uptime command:
<?php passthru("uptime"); ?>
For more details about how to execute Unix/Linux command in PHP, please refer to PHP online manual.
Category : PHP
Posted by FreeBSD Newbie at June 24, 2005 11:59 PM
