-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Il giorno 02/set/09, alle ore 14:39, Tim Landscheidt ha scritto:
Hi,
is there any reliable way to determine if a script is run in the toolserver cluster, i. e. can make use of the database servers & Co., without checking for hostname being wolfs- bane, nightshade or names-to-come?
In PHP:
$DEBUG=(preg_match("/\btoolserver.org$/", $_SERVER['SERVER_NAME']) ? false : true); if($DEBUG) // Not on TS. else // ON TS
"I'm Outlaw Pete, I'm Outlaw Pete, Can you hear me?" Pietrodn powerpdn@gmail.com