Forum Moderators: coopster
header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Cache-Control: no-cache");
header("Pragma: no-cache");
Might be a bit overkill, but try doing it. I use it on a site that people are uploading images too, and before I put these up, the images sometimes wouldn't refresh in IE.
Hope this helps!
<?
header( 'refresh: 3; url=/chamber/chamber_members/pic_loader/loadmeup_dex_lft.php' );
?>
if I do
header( 'refresh: 3; url=/' );
it refreshes to the index page
but if I use the top code line it throws at me "indefined variable etc...."
which does not make sense since without the "refresh" the script works A OK!
I need to refresh the same very page in order to show the new loaded image
script sample
<<<
first the usual
<?
session_register("auth_user");
?>
then some HTML and PHP (some are inspired by "Birdman's thumbs maker" script that I adapted to work on a multiple users environment and load the path to a DB)
<html><head>
<title>Save image</title>
</head>
<body>
<form action="view_dex_lft.php" method="post">
<?php
function db_connect()
{
$result=@mysql_pconnect("****", "****", "****") or die ('I cannot connect to the database.');
etc....
then all the image resize etc...
and ends by
?>
<img src="../images/<?=$new_thumb?>" style="float: left" border=\"0\" /></a>
<input type="hidden" name="index_left_pic[<?=$num?>]" value="<?=$new_pic?>" />
</div>
<?php
}
?>
<input type="submit" value="Click to Save Image" />
</form>
</body>
</html>