I was just writing a page up and came across what to me appears to be a bug but it could be the proper behaviour...
//in a file somewhere:
function somefunction(){
echo "Hi";
}
//then on the actual page:
include("somefunction.php");
if($this){
header("Location: here");
} else {
somefunction();
}
Now - this generates an error saying I've already sent header information but I it's an either or thing.
Is this a bug? Odd behaviour? just plain annoying?
JMJimmy