diff --git a/caca-php/examples/cacapig.php b/caca-php/examples/cacapig.php index 0eb9060..0ea30b6 100755 --- a/caca-php/examples/cacapig.php +++ b/caca-php/examples/cacapig.php @@ -16,6 +16,9 @@ * http://sam.zoy.org/wtfpl/COPYING for more details. */ +if (php_sapi_name() != "cli") { + die("You have to run this program with php-cli!\n"); +} $pig_str = <<