Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Force script refresh

Aloittaja stanni, huhtikuu 10, 2008, 10:51:52 AP

« edellinen - seuraava »

stanni

Hey guys, I got another quick question :P

Is there a way to MAKE this script refesh everytime that the page is reloaded, because it doesnt seem to be doing unless I close IE and restart it, this casues trouble when I log out and back in again on another account.

Script:
<?php
require_once('/home/r/y/ryanstaniforth/public_html/forum/SSI.php');
echo $x;
echo 'username=' . $context ['user']['name'];
?>

Thnx again

karlbenson

try sending these headers at the top of your script and see if it makes any difference

header("Cache-Control: no-cache");
header("Pragma: nocache");

stanni

Nope, that stops it from loading the username.

Spaceman-Spiff

You have to send the headers before any outputs from the script.

Advertisement: