(There is specific linux-related data here, so please forgive them if this is not your platform ...)
If you work in apache and have access to configuration files (which may be wrong with shared hosting), you can put such a line in your VirtualHost configuration file (or httpd.conf or another included configuration file):
SetEnv FOURSQUARE_PW "your password"
Then your php scripts can access it in $_SERVER['FOURSQUARE_PW'] .
The advantage is that you can make this configuration file available only to root, since apache will be run as root using init.d.
grossvogel
source share