PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Gonzalo Chumillas   Flash 2 HTML   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Test script
Class: Flash 2 HTML
Convert HTML for Flash to regular HTML
Author: By
Last change:
Date: 13 years ago
Size: 2,075 bytes
 

Contents

Class file image Download
<?php
require_once "classes/flash2html.class.php";

// HTML Flash
$text = '<P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><B>Integer sed lacus libero</B>, tempus sodales nisi. In hac habitasse platea dictumst. Pellentesque nec odio est, a iaculis lacus. Maecenas ante ligula, pellentesque in mattis sed, scelerisque nec dolor. Duis lorem enim, pretium vel luctus ut, <I>varius ut nunc</I>.</FONT></P><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><LI><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="http://www.php.net" TARGET=""><U>Vestibulum</U></A> sed risus et nunc consequat faucibus.</FONT></LI><LI><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Sed quam metus, consequat nec dignissim quis, mattis ac quam.</FONT></LI><LI><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><A HREF="mailto:qkehkrqnqweh@wkjehkrw.com" TARGET=""><U>Maecenas</U></A> venenatis volutpat purus, vitae sagittis enim cursus eget.</FONT></LI><LI><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Proin elementum hendrerit nibh sit amet elementum.</FONT></LI><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"></FONT></P><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0"><U>Nullam tempus molestie sem</U>, non venenatis ligula suscipit a. Suspendisse dignissim, nulla quis euismod iaculis, libero lectus aliquet dui, sit amet varius ante nulla eget eros. Nulla facilisi. Cras et erat dui.</FONT></P>';

$f = new Flash2HTML();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title>Test</title>
    </head>

    <body>
        <?php echo $f->html($text); ?>
</body>
</html>