Solved

php image tracking that can also display flash swf need help

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is an explanation of a simple data model to help parse a JSON feed
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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…

738 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