Originally posted by sunit_modi
not sure if this is any good but removes the issue of header errors that i normally get:
echo("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL= YOUR URL HERE!!!! \">");
Sunit
never use parenthesis around echo
"echo() is not actually a function (it is a language construct) so you are not required to use parentheses with it. In fact, if you want to pass more than one parameter to echo, you must not enclose the parameters within parentheses. It is not possible to use echo() in a variable function context, but you can use print() instead."
also if the code you are using doesn't need to be parsed then don't parse it. anything within "" is parsed, so use ' otherwise, with lots of code it will give the server less work and speed things up:
echo '<META HTTP-EQUIV="Refresh" CONTENT="0; URL=YOUR URL HERE!!!!" />';
and if you get errors then that shows poor script design. There are a number of methods of getting round the problem. A class to gather and display information is my prefered method. Other people prefer OB, but whatever you want.
🙂
the best method as already given is header('Location: help.php');