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-fl ash; 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
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-fl
}
if ($_GET["type"] == "jpg")
{
header("Content-Type: image/jpg");
}
header ("Location: impression_files/".$_GET['
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.