so apparently if you do this:
<?php
echo 'something';
header("Location: http://something/");
?>
it will not work because there is an output preceding the header…
is there any other alternative php redirection method that works straight from php without installing anything and in which it will still work even if there’s an output preceding it so that I don’t have to worry about making sure that there is no output before, etc…
not, unless you do something in javascript or html tags in the page that you output itself
if preceding output is a problem
you can also use output buffering, see ob_start, ob_get
to get around that