|
Try switching the order. You cannot set a variable before you send the header. The first thing to be sent to the browser is the headers and then any variables.
[code:1:7085844874]<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
$random_mainimage = rand(1, 10);
$link = 'yes';
$page = '';
$image = 'reg';
?>[/code:1:7085844874]
Sorry I have not been available lately. I will have some time tonight if you need me. You have my email.
imaginemn
|