Solved

php image tracking that can also display flash swf need help

Posted on 2006-11-17
1
196 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

12 Experts available now in Live!

Get 1:1 Help Now