[PHP] rebooting linux using php

2002-07-18 Thread Harpreet Kaur
Can we reboot a linux server using a php page? And is it recommended? Regards, Harpreet Kaur _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] rebooting linux using php

2002-07-18 Thread John S. Huggins
On Thu, 18 Jul 2002, Harpreet Kaur wrote: - -Can we reboot a linux server using a php page? Yes. -And is it recommended? No. - -Regards, -Harpreet Kaur - - -_ -Join the world’s largest e-mail service with MSN Hotmail.

Re: [PHP] rebooting linux using php

2002-07-18 Thread Scott Fletcher
This can be done using the exec() function, the php.net doc will explain how it work. There are a few known problem as I can see if someone try to reboot the Linux/Unix. 1) If the hacker break-in and take control of hte script. Who know what could have happen. 2) If using encryption

Re: [PHP] rebooting linux using php

2002-07-18 Thread 1LT John W. Holmes
-Can we reboot a linux server using a php page? Yes. -And is it recommended? No. Can I get the URL of that page so I can put it in my cron file? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] rebooting linux using php

2002-07-18 Thread Scott Fletcher
If you're going to use the cron file (or crontab) then php wouldn't work because it is a programming languages for the web pages. For cron files or crontab, you can use the bash shell or ksh or whatever you have. It's simple. All you had to do is to create a file on hte Unix/Linux machine and

Re: [PHP] rebooting linux using php

2002-07-18 Thread Jason Reid
Or you could do that using php: #!/usr/local/bin/php -q ? echo `/usr/bin/shutdown -Fr now`; ? (Note those are backticks, not apostrophes) Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca Scott Fletcher [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] rebooting linux using php

2002-07-18 Thread Jason Wong
On Friday 19 July 2002 04:26, Scott Fletcher wrote: If you're going to use the cron file (or crontab) then php wouldn't work because it is a programming languages for the web pages. For cron files or crontab, you can use the bash shell or ksh or whatever you have. It's simple. All you had

Re: [PHP] rebooting linux using php

2002-07-18 Thread Richard Lynch
On Friday 19 July 2002 04:26, Scott Fletcher wrote: If you're going to use the cron file (or crontab) then php wouldn't work because it is a programming languages for the web pages. For cron files or [Perhaps there was even more text missing that made this all out of context... Sorry.] I