Page 1 of 1

how to run application on server

Posted: Thu Aug 12, 2004 1:32 am
by bugthefixer
my code actually tries to run an applet on server

Code: Select all

<?php
echo '<pre>';

$last_line = system("cd /var/www/html/Railway/uni2/index.html", $retval);

// Printing additional info
echo "
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval";

?>
well it doesnt do anything..but when i run ls it gives me output..so i think it shud run application as well using shell command..
if it is possible then how can i do it..

Posted: Thu Aug 12, 2004 2:59 am
by Grim...
[php_man]exec[/php_man]()?