how to run application on server
Posted: Thu Aug 12, 2004 1:32 am
my code actually tries to run an applet on server
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..
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";
?>if it is possible then how can i do it..