register_globals is already off with PHP 5. You should be able activate magic quotes in your .htaccess file with:
php_flag magic_quotes_gpc on
Which is what you thought. A much better solution is to handle the quotes manually, with addslashes() and stripslashes(). If you are going to be wacking something into MySQL, you will get better results with mysql_real_escape_string() instead.
Simon Jessey | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000][b]SCJESSEY97[/b][/color]