View Single Post
Old 07-06-2004, 10:17 AM   #4 (permalink)
imaginemn
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,935
iTrader: 0 / 0%
imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
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
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline   Reply With Quote