Maar als ik het script wil uitvoeren in cli zoals dit:
Code: Selecteer alles
root@raspberrypi:~# php5-cgi /usr/share/nginx/www/monitor/cron/status.cron.php
Code: Selecteer alles
X-Powered-By: PHP/5.4.4-14+deb7u11
Content-type: text/html
This script can only be run from the command line.
Code: Selecteer alles
if(!psm_is_cli()) {
die('This script can only be run from the command line.');
}
