Solved

Cache Killer

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

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

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

747 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

13 Experts available now in Live!

Get 1:1 Help Now