![]() |
|
|
+ Search |
![]()
|
Mar 19th, 2008 22:35
ha mo, Philip Olson, Paul Meier, Gary Czychi,
Use the PHP function php_sapi_name() so for example:
<?php
if (php_sapi_name() == 'cli') {
echo "You are using cli";
} else {
echo "You are using something other than cli";
}
?>
More information exists in the PHP manual:
http://www.php.net/php-sapi-name
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com