Advertising
Paste Description for shutdown using PHP
I've meet a problem with a simple customized rc.shutdown script based on PHP.
This script works great when I start it manually,
but with Ctrl+Atl+Del, I've got this error message: "cannot open ?php: No such file or directory"
- shutdown using PHP
- Friday, March 30th, 2007 at 4:02:09pm MDT
- #!/usr/local/bin/php -f
- <?php
- // include all functions
- require_once("globals.inc");
- require_once("functions.inc");
- require_once("util.inc");
- // Start the shutdown
- system_halt();
- ?>
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.