Solved

php image tracking that can also display flash swf need help

Posted on 2006-11-17
1
197 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
base64 decode encode 12 122
tidtcpserver connection lost handle 2 72
Plain Text Editor for iPad 6 60
Advice on Xojo as a development tool over VB. 4 41
RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now