Hey people,
Is there a way to redirect in PHP without using header()? I have no idea why this is not working. At first it was because I was sending some HTML before using it. I now have a page only with php code no HTML whatsoever. I am getting the error:
Warning: Cannot modify header information - headers already sent by (output started at C:\ftproot\ in C:\ftproot\ on line 33
Line 33 is the code for header which reads as follows:
header('location: warning.php');
I was using an include statement which worked fine for the most part but I would rather redirect. Any ideas?
Is there a way to redirect in PHP without using header()? I have no idea why this is not working. At first it was because I was sending some HTML before using it. I now have a page only with php code no HTML whatsoever. I am getting the error:
Warning: Cannot modify header information - headers already sent by (output started at C:\ftproot\ in C:\ftproot\ on line 33
Line 33 is the code for header which reads as follows:
header('location: warning.php');
I was using an include statement which worked fine for the most part but I would rather redirect. Any ideas?