However that code will generate an error if there is no query string at all.
I think I have gotten something that works. Here is what I am doing right now:
<?
if (empty($_SERVER['argv']))
{
header('Location: [url]http://www.someplace.com[/url]');
} else {
echo "We have data";
}
?>