Solved

php image tracking that can also display flash swf need help

Posted on 2006-11-17
1
206 Views
Last Modified: 2010-04-16
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
0
Comment
Question by:huang_ck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 8

Accepted Solution

by:
YoungBonzi earned 500 total points
ID: 17967772
Hi,

Try to change the image code to: <embed src="http://xxx.com/tracking.php?id=795&file=banner.swf&type=swf">
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Simple Linear Regression
Introduction to Processes

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question