I want to redirect to another file, isn't this the right code to do so
header("Locatio n:http://".$_SERVER['HTTP_HOST'].dirname($_SERV ER['PHP_SELF'])."/images/$file_name");
the interpreter give me this erorr instead of redirecting
Warning: Cannot modify header information - headers already sent by
(output started at E:\tryphp\direc t.php:9) in E:\tryphp\direc t.php on
line 70
what's wrong in the code coz i don't understand the erorr
header("Locatio n:http://".$_SERVER['HTTP_HOST'].dirname($_SERV ER['PHP_SELF'])."/images/$file_name");
the interpreter give me this erorr instead of redirecting
Warning: Cannot modify header information - headers already sent by
(output started at E:\tryphp\direc t.php:9) in E:\tryphp\direc t.php on
line 70
what's wrong in the code coz i don't understand the erorr
Comment