General Community > Scripting Help
Alternative to header("location:x");
(1/1)
Les Mackenzie:
Does anyone know of na alternative to this function?
I keep getting these errors and it's a pain in the a@# to be hunting them down.
Warning: Cannot modify header information - headers already sent by (output started at /home/neo10010/public_html/scripts/config.php:11) in /home/neo10010/public_html/scripts/list_adduser.php on line 15
[Unknown]:
Use output buffering, it makes life easier and your code (in many cases) faster....
-[Unknown]
Les Mackenzie:
thanks for the tip :D
Chris Cromer:
You can use <meta> refreshes, or javascript as well. Although the javascript one is flawed because not all browsers support it.
Here is the javascript I use:
--- Code: ---<script language="JavaScript"><!--location.href="x"--></script>
--- End code ---
Navigation
[0] Message Index
Go to full version