hi,
For some reason the URLS won't redirect, it has worked but now it does not want to work. I even got the script from scratch again but still it does not want to work.
I get the following error:
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\ volvo\secure\lo g10.php:2) in C:\AppServ\www\ volvo\secure\lo g10.php on line 5
[PHP]
<?php
$d=date("1");
if ($d=="1")
Header("Locatio n: http://www.google.com" );
elseif ($d=="2")
Header("Locatio n: http://www.yahoo.com") ;
else
echo "Have a nice day!";
?>
[/PHP]
I know of the $d=date("1"); but just copied the script because I saw it work.
For some reason the URLS won't redirect, it has worked but now it does not want to work. I even got the script from scratch again but still it does not want to work.
I get the following error:
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\ volvo\secure\lo g10.php:2) in C:\AppServ\www\ volvo\secure\lo g10.php on line 5
[PHP]
<?php
$d=date("1");
if ($d=="1")
Header("Locatio n: http://www.google.com" );
elseif ($d=="2")
Header("Locatio n: http://www.yahoo.com") ;
else
echo "Have a nice day!";
?>
[/PHP]
I know of the $d=date("1"); but just copied the script because I saw it work.
Comment