Am 26.11.2011 01:35, schrieb Simon J Welsh:
On 26/11/2011, at 1:14 PM, Andreas wrote:
how could I identify the server the script runs on?
php_uname('n'); http://php.net/php_uname
Great, that even works on a ssh-tunnel.
I got derailed by the fact that my tunnel maps the remote server to
localhost:80 so
$_SERVER['SERVER_ADDR'] and
$_SERVER['SERVER_NAME'] wouldn't help.
On the other hand for everyone on the remote LAN $_SERVER['...'] would
work ok, though I didn't realise that before.
Thanks :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php