Login   Register  
PHP Classes
elePHPant
Icontem

File: swfpage.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gurdeep Singh  >  SWF to JPG  >  swfpage.php  >  Download  
File: swfpage.php
Role: Example script
Content type: text/plain
Description: Captures the data from Flash and pass it to PHP class. this is the test script
Class: SWF to JPG
Render Flash canvas image as JPEG
Author: By
Last change:
Date: 6 years ago
Size: 441 bytes
 

Contents

Class file image Download
<?php
    
if ($HTTP_POST_VARS["thisLetter"] != null || $HTTP_POST_VARS["thisLetter"] != "") {
        include_once(
"SWFtoJPG.php");
        
SWFtoJPG::drawImage($HTTP_POST_VARS["thisLetter"]);
        
$img "created.jpg";
    } else {
        
$img "notfound.jpg";
    }
?>
<html>
    <head>
        <title>JPG image from SWF</title>
    </head>
    <body bgColor='#BCABD0'>
        <center>JPG image from SWF
            <p><img src='<?php echo $img?>'>
        </center>
    </body>
</html>