I hate to say this, but I was about to delete this thread. I'm not completely sure this works...perhaps I should have done some homework first. Research...
Edit: my quick test says this (the safe mode test) does not work...what the heck was he talking about?
Double Edit: apparently, it does work. I think my dev server has it turned off by default. Perahps I'm not smart enough to figure this one out.
http://us3.php.net/ini_set
http://us3.php.net/dl
This link basically spells it out...look for SAFE_MODE in the list...
http://us3.php.net/manual/en/ini.php#ini.list
I can't get the extension to load as I'm on a multithreaded server. It does appear possible. Additionally, something is wonky with my dev server setup so I can't play around with the safe_mode setting. Somebody else could try it out...here's the code...
ini_set('safe_mode','0');
if (ini_get('safe_mode')) {
echo 'on';
} else {
echo 'off';
}