NYCPHP Meetup

NYPHP.org

[nycphp-talk] Weird problem with PHP and MySQL on IIS

George Webb gw.nyphp at gwprogramming.com
Wed May 14 14:51:15 EDT 2003


... don't know exactly, but have what does your mysql_connect(...)
command look like?  are you using host names instead of IP address?
If so, maybe the DNS is taking a while to resolve, which is probably
because it is failing to resolve by one of your DNS servers.  If
this is it, you could try hard-coding the IP address into your
mysql_connect() command, OR hard-code the IP address and hostname
into your winnt\\system32\\drivers\\etc\\hosts file -- which should
supercede the DNS lookups.

	If you need use the default mysql_connect() call -- with
no arguments -- you can set the default DB hostname in your
PHP.INI file... wherever that may be.

	(...just a thought)


Best, George.

George Webb
gw.nyphp at gwprogramming.com



More information about the talk mailing list