Hmmm, I just tried testing for the "SYSTEM" string and it still falls through to the else branch - any help would be extremely grateful now :-) Mikey --- Developer - Radius Design Ltd. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php