terminal commands on the server ?
Posted: Fri Feb 20, 2009 6:59 pm
Can I run a command from a php file that will actually run on my server as if I were typing the same command in a linux terminal?
If I run this code from a remote browser the ls command outputs to the browser & the aplay doesn't do anything.
I want the ls to output to my servers terminal & also the beep too.
Is this possible ?
If I run this code from a remote browser the ls command outputs to the browser & the aplay doesn't do anything.
I want the ls to output to my servers terminal & also the beep too.
Is this possible ?
Code: Select all
<?php
$aa = "ls /var/www";
system ($aa);
$bb = "aplay /var/www/beep.wav";
system = ($bb);