Solved

Cache Killer

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

Title # Comments Views Activity
Standard for Web Development 3 47
Excel Hyperlink Question 4 60
Two wordpress questions 3 60
Show tab when enter div and change underline color 3 60
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

791 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