Can we reboot a linux server using a php page? And is it recommended?
Regards,
Harpreet Kaur
_
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
PHP General Mailing List (http://www.php.net/)
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 worlds largest e-mail service with MSN Hotmail.
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
-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
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
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]...
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
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
8 matches
Mail list logo