how to run application on server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bugthefixer
Forum Contributor
Posts: 118
Joined: Mon Mar 22, 2004 2:35 am

how to run application on server

Post 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..
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

[php_man]exec[/php_man]()?
Post Reply