header problem in php refresh
Posted
by basma
on Stack Overflow
See other posts from Stack Overflow
or by basma
Published on 2010-05-27T09:19:04Z
Indexed on
2010/05/27
9:31 UTC
Read the original article
Hit count: 195
hello
i have this code :
<?php
session_start();
echo "".$_SESSION['eventnum']."";
$urlRefresh = "testremot.php";
header("Refresh: 5; URL=\"" . $urlRefresh . "\"");
?>
but the header doesnt work and this warning appear when i try to run this code :
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\remot\testremot.php:3) in C:\xampp\htdocs\remot\testremot.php on line 5
can you please help me ?
© Stack Overflow or respective owner