Changeset 3199 for libcaca/trunk/caca-php/examples/www/text.php
- Timestamp:
- Nov 2, 2008, 4:10:44 AM (12 years ago)
- 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"> 2 5 <?php 3 6 /* … … 15 18 * http://sam.zoy.org/wtfpl/COPYING for more details. 16 19 */ 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 21 27 22 28 $string = <<<EOT … … 59 65 } 60 66 61 echo caca_export_string($cv, " utf8");67 echo caca_export_string($cv, "html3"); 62 68 caca_rotate_left($cv); 63 echo caca_export_string($cv, " utf8");69 echo caca_export_string($cv, "html3"); 64 70 65 71 ?> 72 </body> 73 </html>
Note: See TracChangeset
for help on using the changeset viewer.