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
Revan
Forum Commoner
Posts: 83 Joined: Fri Jul 02, 2004 12:37 am
Location: New Mexico, USA
Contact:
Post
by Revan » Fri Jul 02, 2004 12:37 am
Hello, how would i use PHP to run a bash command? im trying to get php to do reboot -f
thanks.
Last edited by
Revan on Fri Jul 02, 2004 12:44 am, edited 1 time in total.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Jul 02, 2004 12:39 am
try reading [php_man]shell_exec[/php_man]
ol4pr0
Forum Regular
Posts: 926 Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador
Post
by ol4pr0 » Fri Jul 02, 2004 12:40 am
exec();
Not sure tho if that will allow you to do that like that.
Revan
Forum Commoner
Posts: 83 Joined: Fri Jul 02, 2004 12:37 am
Location: New Mexico, USA
Contact:
Post
by Revan » Fri Jul 02, 2004 12:45 am
Okay, thanks guys.