Changeset 3199 for libcaca


Ignore:
Timestamp:
Nov 2, 2008, 4:10:44 AM (12 years ago)
Author:
bsittler
Message:

HTML conversion of text.php

File:
1 edited

Legend:

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

    r3197 r3199  
    1 #!/usr/bin/php5
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3
     4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    25<?php
    36/*
     
    1518 *  http://sam.zoy.org/wtfpl/COPYING for more details.
    1619 */
    17 
    18 if (php_sapi_name() != "cli") {
    19         die("You have to run this program with php-cli!\n");
    20 }
     20?>
     21<head>
     22<title>demo for libcaca php binding</title>
     23<link rel="StyleSheet" href="caca-php.css" type="text/css" />
     24</head>
     25<body text="silver" bgcolor="black">
     26<?php
    2127
    2228$string =  <<<EOT
     
    5965}
    6066
    61 echo caca_export_string($cv, "utf8");
     67echo caca_export_string($cv, "html3");
    6268caca_rotate_left($cv);
    63 echo caca_export_string($cv, "utf8");
     69echo caca_export_string($cv, "html3");
    6470
    6571?>
     72</body>
     73</html>
Note: See TracChangeset for help on using the changeset viewer.