Ignore:
Timestamp:
Nov 4, 2008, 4:56:18 AM (11 years ago)
Author:
bsittler
Message:

force cli on remaining examples so that apache doesn't pop up a window
(this actually happens with the cocoa driver!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/colors.php

    r3260 r3268  
    1717   *  http://sam.zoy.org/wtfpl/COPYING for more details.
    1818   */
     19
     20if (php_sapi_name() != "cli") {
     21        die("You have to run this program with php-cli!\n");
     22}
    1923
    2024$cv = caca_create_canvas(80, 24);
Note: See TracChangeset for help on using the changeset viewer.