After some experimentation I realized that it was sql.safe_mode=On and not safe_mode=On that prevented me from using mysql_connect(host,userid,passwd) in a shell script with PHP 4.0.6 as CGI/shell-application under RedHat Linux. A search for sql.safe_mode on www.php.net turned up gems like "sql.safe_mode boolean" (with no explanation) in http://www.php.net/manual/en/configuration.php and "mysql_*() sql_safe_mode restrictions, (!= Safe Mode)" in http://www.php.net/manual/en/features.safe-mode.php but no hard explanation of what sql.safe_mode actually does. Can anyone give me a hint where to find more about sql.safe_mode, short of reading the source code? Sven M. Sorensen University of Southern Denmark -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]