Hi there people of Webmasterworld,
I'm wondering if there is a way to use php to force a new browser window to open, effectively mimicing a link being clicked. I was wondering if there is a parameter within header("location: "); that could do this, but as yet I can't seem to find it.
I'm trying to avoid javascript, as there is no specific link, it just an if stating (pseudo code :)):-
if(isset(DEBUG) && DEBUG == "output"){
//force content into new window & redirect parent window to mainpage
}
Basically I have a constant defined in my defenitions file, it's value is set from a db call, so effectively depending on the value of DEBUG depends on whether or not the output is piped into a file or to a new browser window. Default is NULL (as the db field is enum, with either NULL, output, file as the options, NULL is no action obviously ;-) )
I hope that makes sense.
More than likely I am approaching this in a rather convoluted way, any suggestions welcome :)
Cheers,
MRb