I have a client that wants his site to refresh every 5 minutes. How do i do that? I tried
[code=php]
<?php
$value = ‘something from somewhere’;
setcookie(“TestCookie”, $value, time()+1100); /* expire in 1 hour */
?>
That gives me this error
Warning: Cannot modify header information – headers already sent by (output started at /hermes/web05/b1750/pow.fireballdeals/htdocs/Matts Store 2/PS2_Controllers.php:77) in /hermes/web05/b1750/pow.fireballdeals/htdocs/Matts Store 2/PS2_Controllers.php on line 159
And no longer shows anything on the page as far as the database information that it pulls.
Any ideas or suggestions on what I am doing wrong. Ive never messed with cookies so I’m not sure what the coding is or where it needs to go.