title: Where's the script located? Localhost or on the Server?
body: <p>Like many programmers I have a server where I host my scripts, and a localhost where I make them. Is there in PHP a <strong>secure</strong> way to let the script tell the difference between them? SERVER_NAME works, but can be injected, so isn't <strong>secure</strong>. Does someone have a solution? (Non-Static Solution preferable)</p>