What I ended up doing was adding a background image in my style file on my body tag, like this:
Code: Select all
<style>
body
{
/*other body styles here */
background-image : url(somescript.php);
}
</style>Here's how I did it
Code: Select all
<?php
//do processing up here that you don't need output from
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1 no caching
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0 no caching
header("Pragma: no-cache");
// tell it that this is a gif
header("Content-Type: image/gif");
readFile("images/blank.gif");
?>There are a couple of disadvantages to this, as it requires that a user have css and images enabled in their browser. Also, if you're using it for running a task at specified intervals like I am, the task will not get run unless someone is actively browsing the site. That being said, it works for my purposes so it might work for yours.