if (php_sapi_name() != 'cli') die('Invalid SAPI'); if (! isset($argv)) die('PHP too old (Not 4.3.0 or above)');