Created
March 16, 2015 17:04
-
-
Save bgadrian/a42237683185119d317e to your computer and use it in GitHub Desktop.
PHP CLI mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//lock only from CLI mode, usually for cronjobs left in public !! Do not make this ! | |
if (strpos(strtolower(PHP_SAPI),'cli') === false) | |
{ | |
die(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment