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

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 h

Re: [PHP] rebooting linux using php

2002-07-18 Thread Jason Reid
Or you could do that using php: #!/usr/local/bin/php -q (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]... > If you're going to use the cron

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 d

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
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 an

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.

[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

2002-04-09 Thread Eugene Lee
On Tue, Apr 09, 2002 at 07:19:44PM +0200, Dave Raven wrote: : : I need to reboot a FreeBSD 4.5-STABLE : computer using php + apache. I have a : small wrapper which runs the reboot : command as root, but it freezes half way : through and the box hangs. : : I'm thinking

[PHP] Rebooting

2002-04-09 Thread Dave Raven
Hello all I need to reboot a FreeBSD 4.5-STABLE computer using php + apache. I have a small wrapper which runs the reboot command as root, but it freezes half way through and the box hangs. I'm thinking that the reboot process is killing apache, and in effect killi