Reply to Re: PHP default host best practices

Your name:

Reply:


Posted by Peter van Schie on 04/01/06 23:40

esingley@gmail.com wrote:

> 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
> options?

I usually use an include file in which I define this type of settings.
In case of the database host it's usually localhost though, unless you
run the database server on a seperate server.

HTH.
Peter.

--
http://www.phpforums.nl

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация