php image tracking that can also display flash swf need help

Posted on 2006-11-17
Medium Priority
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:

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']);
  //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
Question by:huang_ck
1 Comment

Accepted Solution

YoungBonzi earned 2000 total points
ID: 17967772

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Simple Linear Regression

588 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