Hello everyone, I hope someone helpful could solve this problem.
I'm trying to prevent cacheing of a web page by using the following HTTP headers placed at the top of the script:
<?php
HEADER("Expires: time()");
HEADER("Pragma: no-cache");
HEADER("cache-control: no-cache, no-store, must-revalidate");
?>
But instead, I always receive the following message:
"Warning: Cannot add header information - headers already sent by
(output started at c:\phpweb/test.php:2) in c:\phpweb/test.php on line 3
Warning: Cannot add header information - headers already sent by
(output started at c:\phpweb/test.php:2) in c:\phpweb/test.php on line 4
Warning: Cannot add header information - headers already sent by
(output started at c:\phpweb/test.php:2) in c:\phpweb/test.php on line 5"
I've also tried re-starting Apache, and even re-booting. But the problem remains.
Many thanks.