I've got a script that runs from the command line okay, but when I run it from the brower I get the following error:
"The URL you asked for does not exist on this website."
The offending line is this:
print "Location:" . $SDN_Address . $SDN_City . $SDN_Country . "\n\n";
If I change "Location:" to anything else (example "Locatio:") then the script runs as intended.
I can provide more details if needed. I'll let you know if pulling the script into a proper web page (ie, content-type: html) solves the problem. I'm using Xitami as a personal webserver, btw.
Anyway... this is one of those things that took a bit of trial & error to discover. Argh!
Attached is the whole script I'm currently working on - it's not pretty, but at least I'm using strict
Any comments/suggestions appreciated (just explain "why" so I can learn).
"The URL you asked for does not exist on this website."
The offending line is this:
print "Location:" . $SDN_Address . $SDN_City . $SDN_Country . "\n\n";
If I change "Location:" to anything else (example "Locatio:") then the script runs as intended.
I can provide more details if needed. I'll let you know if pulling the script into a proper web page (ie, content-type: html) solves the problem. I'm using Xitami as a personal webserver, btw.
Anyway... this is one of those things that took a bit of trial & error to discover. Argh!
Attached is the whole script I'm currently working on - it's not pretty, but at least I'm using strict
Any comments/suggestions appreciated (just explain "why" so I can learn).