Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP default host best practices
April 1, 2006, 7:34 pm
rate this thread
DBs working fine. What need to do is set the mysql.default_host option
in php.ini to be one thing on dev, and something different on
production. Unfortunately, my web host doesn't allow me to mess with
So, what's the best way to specify a different host to mysql_connect()
on dev and production. Yes, I could manually edit the variable
everything I FTP, but I'd rather not.
Should I use a global variable in a separate include file? Other