| @@ -19,7 +19,7 @@ header('Content-Type: text/html; charset=UTF-8'); | |||||
| ?> | ?> | ||||
| <head> | <head> | ||||
| <title>sample program for libcaca php binding</title> | <title>sample program for libcaca php binding</title> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |||||
| </head> | </head> | ||||
| <body text="silver" bgcolor="black"> | <body text="silver" bgcolor="black"> | ||||
| <?php | <?php | ||||
| @@ -7,7 +7,7 @@ header('Content-Type: text/html; charset=UTF-8'); | |||||
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | ||||
| <head> | <head> | ||||
| <title>Caca power!</title> | <title>Caca power!</title> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <?php | <?php | ||||
| @@ -38,7 +38,7 @@ $canvas = caca_create_canvas(100, 40); | |||||
| caca_dither_bitmap($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img); | caca_dither_bitmap($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img); | ||||
| echo caca_export_string($canvas, "html3"); | echo caca_export_string($canvas, "html3"); | ||||
| echo "<img src='./$src' alt=''/>"; | |||||
| echo "<img src=\"./$src\" alt="" />"; | |||||
| ?> | ?> | ||||
| </body> | </body> | ||||
| @@ -6,7 +6,7 @@ header('Content-Type: text/html; charset=UTF-8'); | |||||
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | ||||
| <head> | <head> | ||||
| <title>Caca power!</title> | <title>Caca power!</title> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form method="get" action="#"><input name="str" value="<?= htmlspecialchars(isset($_GET["str"]) ? $_GET["str"] : "Libcaca") ?>" /><input type="submit" value="OK" /></form> | <form method="get" action="#"><input name="str" value="<?= htmlspecialchars(isset($_GET["str"]) ? $_GET["str"] : "Libcaca") ?>" /><input type="submit" value="OK" /></form> | ||||
| @@ -51,7 +51,7 @@ $render_php = isset($_SERVER['SCRIPT_NAME']) | |||||
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||||
| <head> | <head> | ||||
| <title>Я люблю Либкаку</title> | <title>Я люблю Либкаку</title> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |||||
| </head> | </head> | ||||
| <body text="silver" bgcolor="black"> | <body text="silver" bgcolor="black"> | ||||
| @@ -23,7 +23,7 @@ header('Content-Type: text/html; charset=UTF-8'); | |||||
| ?> | ?> | ||||
| <head> | <head> | ||||
| <title>demo for libcaca php binding</title> | <title>demo for libcaca php binding</title> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |||||
| </head> | </head> | ||||
| <body text="silver" bgcolor="black"> | <body text="silver" bgcolor="black"> | ||||
| <?php | <?php | ||||