Ignore:
Timestamp:
Nov 1, 2008, 7:42:16 PM (11 years ago)
Author:
nico
Message:
  • Add web sample program: dithering.php
Location:
libcaca/trunk/caca-php/examples/www
Files:
2 added
1 edited

Legend:

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

    r3189 r3191  
    99<?php
    1010/*
    11  *  figfont.php      sample program for libcaca php binding
     11 *  figlet.php      sample program for libcaca php binding
    1212 *  Copyright (c) 2008 Nicolas Vion <nico@yojik.eu>
    1313 *
     
    4848}
    4949
    50 $dir = opendir($path = "/usr/share/figlet/");
     50$path = "/usr/share/figlet/";
     51if (!is_dir($path)) {
     52        die("can not open directory $path.\n");
     53}
     54
     55$dir = opendir($path);
    5156while (($it = readdir($dir)) != false) {
    5257        if (is_file($path.$it) and ereg("\.[tf]lf$", $it)) {
Note: See TracChangeset for help on using the changeset viewer.