I need to have a batch job, from windows (using AT command) to run
once per night to ensure that admins have logged off/out of the web
site admin panel. If I were logged in, I would issue a url similar to
this
It's not the AT command that's the issue; it's the php code to do this
from command line php. I would expect to have a php program like this
(called logoff.php)
<?
header("Locatio n: http://mysite.com/cntl.php?action =logout");
?>
and issue a command like
php logoff.php
However, that code does not work from batch, although it does work
from a browser url. Any suggestions to accomplish this? If sockets
are required, please post the method. I have tried that way too but
can't seem to figure it out.
Thanks.
once per night to ensure that admins have logged off/out of the web
site admin panel. If I were logged in, I would issue a url similar to
this
It's not the AT command that's the issue; it's the php code to do this
from command line php. I would expect to have a php program like this
(called logoff.php)
<?
header("Locatio n: http://mysite.com/cntl.php?action =logout");
?>
and issue a command like
php logoff.php
However, that code does not work from batch, although it does work
from a browser url. Any suggestions to accomplish this? If sockets
are required, please post the method. I have tried that way too but
can't seem to figure it out.
Thanks.
Comment