Solved

Cache Killer

Posted on 2004-04-05
5
337 Views
Last Modified: 2008-02-26
**PHP Newb question**

How do you append a timestamp (PHP or javascript) to the swf name in the object/embed tags?

Im a total newb to PHP development and would prefer to learn how to do this in PHP but javascript will suffice.

Thanks!
0
Comment
Question by:jmattsutton
5 Comments
 
LVL 1

Accepted Solution

by:
ch3rryb0mb earned 250 total points
ID: 10762216
well, i dont really know PHP either, but i do know this meta tag, dont know if it will be relevant but its all i got

<META http-equiv="Pragma" content="no-cache">

gl
-char
0
 
LVL 17

Assisted Solution

by:dorward
dorward earned 250 total points
ID: 10763951
foo.swf?<?php print urlencode(time()); ?>

However - you would probably be better off if you configure your webserver to set appropriate cache control headers for the swf file. http://www.mnot.net/cache_docs/

(BTW - using meta tags to set cache control headers is very unreliable, and they only apply to the html document anyway!)
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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

685 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