Link to home
Start Free TrialLog in
Avatar of huang_ck
huang_ck

asked on

php image tracking that can also display flash swf need help

Hi guys,

I have a script for image tracking with php but I dont know how to display flash on it:

the tracking.php:

<?php
if (isset($_GET['file']))
{
      if ($_GET["type"] == "swf")
      {
             header('Content-type: application/x-shockwave-flash; name='.$_GET['file']);
       }
      if ($_GET["type"] == "jpg")
      {
             header("Content-Type: image/jpg");
       }
      header ("Location: impression_files/".$_GET['id']."/". $_GET['file']);
      exit();
}
else
{
  //do nothing
}
?>

the html with the image code:

<img src="http://xxx.com/tracking.php?id=795&file=banner.swf&type=swf" border='0' alt=''>

If I use a jpeg it has no problems, but flash cannot show, can anyone help me please~! thanks
ASKER CERTIFIED SOLUTION
Avatar of YoungBonzi
YoungBonzi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial