Î
Îίκος
Στις 25/9/2013 6:18 μμ, ο/η Grant Edwards ÎγÏαψε:
because it happens to be in the same enviroment with the HTTP server?
No need to run it via web browser and check the Apache's error log?
So you mean that even if i run it via shell this stement will also workAnd of course that's bolloks:
Python 2.7.5 (default, Aug 29 2013, 15:13:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Python 3.2.5 (default, Aug 29 2013, 15:19:46)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
It is.
The Referer is not an environment variable.
It is when you're writing a CGI app.
How would your shell know what URL you were just browsing?
Because the HTTP server sets those environment variables before
invoking the CGI app.
because it happens to be in the same enviroment with the HTTP server?
No need to run it via web browser and check the Apache's error log?