Re: Using PHP to reboot the linux server

From: Date: Fri, 02 Aug 2002 20:07:52 +0000
Subject: Re: Using PHP to reboot the linux server
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-110874@lists.php.net to get a copy of this message
First thing first! Open up the terminal and log in. Then type the command, if the machine doesn't reboot or if you got an error message, it meant the command is not correct. Once you get the correct command then use it in PHP. It's much simplier that way. If PHP can't reboot the machine then it mean many things, like no authority to do it or path statement, shell, etc. For linux, it use "shutdown -r now" For some UNIX, it use "shutdown -Fr" or "shutdown -r", etc. "Ryan" <ryankwokit@hongkong.com> wrote in message news:3D4ADD18.9000203@hongkong.com... > Is it reboot -n ?? > > Harpreet Kaur wrote: > > I am using the below command in the php page to reboot the linux server. > > But nothing happens . Where am i wrong or do i have to give a path or > > nething . Please help. > > > > > > $output = shell_exec(reboot); > > echo $output; > > > > > > > > _________________________________________________________________ > > Join the world's largest e-mail service with MSN Hotmail. > > http://www.hotmail.com > > >

« previous php.general (#110874) next »