Created
May 29, 2015 08:24
-
-
Save tadasuke/f32e795da573812d2f7b to your computer and use it in GitHub Desktop.
PHPで実行元がコマンドラインなのかApache等なのかを判別する ref: http://qiita.com/tadasuke/items/bed2bb4da2131302f2fe
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
php_sapi_name() |
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
'cli' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment