Solved

Cache Killer

Posted on 2004-04-05
5
338 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
[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
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

Independent Software Vendors: 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

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

739 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