Forum Moderators: coopster
I'm trying to determine the servername from a php script that is called either from standard web page or from a command line.
The problem is that from commandline the $_SERVER["SERVER_NAME"] variable is not set, neither with getenv("SERVER_NAME")...
So, do you have any ideas on how to determine the server name from the commandline execution of a php script?
Thanks all!