Ignore:
Timestamp:
Oct 28, 2008, 3:02:27 AM (12 years ago)
Author:
nico
Message:
  • Add php bindings for 9 functions
  • Modify php bloc headers in samples programs
  • Add list of import/export formats in examples/drivers.php
Location:
libcaca/trunk/caca-php/examples
Files:
4 edited

Legend:

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

    r3110 r3126  
    11#!/usr/bin/php5
    2 <?
     2<?php
    33/*
    44 *  demo.php      demo for libcaca php binding
  • libcaca/trunk/caca-php/examples/dithering.php

    r3124 r3126  
    11#!/usr/bin/php5
    2 <?
     2<?php
     3
    34$img = imagecreatefrompng(dirname(__FILE__)."/logo-caca.png");
     5if (!$img)
     6        die("Can not open image.\n");
     7
    48$dither = caca_create_dither_gd($img);
    59if (!$dither)
  • libcaca/trunk/caca-php/examples/drivers.php

    r3114 r3126  
    11#!/usr/bin/php5
    2 <?
    3 
     2<?php
    43
    54//--- Just for fun ---//
     
    4544echo "\n";
    4645
    47 echo "Available export modules:\n";
     46echo "Available import formats:\n";
     47$list = caca_get_import_list();
     48foreach($list as $format => $name)
     49        echo "* $name ($format)\n";
     50echo "\n";
     51
     52echo "Available export formats:\n";
    4853$list = caca_get_export_list();
    49 foreach($list as $type => $name)
    50         echo "* $name ($type)\n";
     54foreach($list as $format => $name)
     55        echo "* $name ($format)\n";
    5156echo "\n";
    5257
  • libcaca/trunk/caca-php/examples/example1.php

    r3111 r3126  
    11#!/usr/bin/php5
    2 <?
     2<?php
    33
    44$pig_str = <<<EOT
Note: See TracChangeset for help on using the changeset viewer.