note 12199 deleted from function.mssql-connect by didou
| From: | didou@php.net | Date: | Sun, 04 Feb 2007 05:53:10 +0000 |
| Subject: | note 12199 deleted from function.mssql-connect by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122788@lists.php.net to get a copy of this message | ||
Note Submitter: yeppikae at hotmail dot com
----
If you're doing all the above stuff on home computer, then chances are that
$hostname="localhost" might not work. I have seen this happen few cases, including mine.
Well, i was messing around with my home lan. Anyways make sure that you point $hostname to your
machine name. That is if your machine name is say "MYSELF" then have
$hostname="MYSELF". It does the trick!
Reason for this - well as far as i understood if you assign a static private IP address to your NIC
(i.e. you're not using DSL or cable, or better not connected to net) then the loopback
doesn't point to your IP address but to 127.0.01. And localhost points to 127.0.01. Well the
apparent mix up.