in reply to Location: Issue

There's not a lot of help here for people trying to figure out what went wrong with your program... The thing after 'Location: ' has to be a URL, and must be properly formatted as an absolute URL. That means spaces and most funny characters must be URL-escaped. If you're not printing headers (and you probably should, so you know where they're coming from. At the very least, you should print a Content-type in some form or other), then Apache is probably looking at the output of your script to see if the first things you're saying look like HTTP headers. If so (and 'Location:' is an HTTP header), then it will expect them to be properly formatted. If you're not intending to redirect the client, then perhaps you should print a couple newlines first. That might get Apache to believe you're not going to print any, and it may end up as a text/plain page in the browser.