Stallion: I was just looking through the global.php file and it's not necessary for you to issue the mysql_pconnect() or mysql_select_db() calls at the top of search.php3. A database connection is already created inside of global.php.
Also, just to clarify for everyone.. search.php3 can be any filename you wish. I named it to search_hack.php myself since we already had a search.php file we were using.
And lastly.. it's a drain on the server to use .htaccess files... those apache directives could just as easily be put inside of a set of Directory tags in the main httpd.conf file. Apache will be all the faster for it.
i.e.
Code:
<Directory /www/sitename/forums/>
? <Files search>
DirectoryIndex search
ForceType application/x-httpd-php
</Files>
</Directory>
Also, for those of you using php4, as I am, notice that my ForceType directive does not end in php3 as in Stallion's example. PHP4 uses application/x-httpd-php instead.
Stallion: great hack.. thanks.