You are here: Re: Cannot get mysql_connect to work « PHP Programming Language « IT news, forums, messages
Re: Cannot get mysql_connect to work

Posted by Michael on 12/28/05 08:39

Jerry and Gordon,

Thank you for taking the time to write out these superb explanations; I
and I'm sure others appreciate it. Just a few more question, if I
may...

1. How does the browser know that it should translate
http:/localhost/myFile.html into /var/www/html/myFile.html? Is there an
ini file somewhere that contains this information?

2. This thread got started because the first mysql call (see below)
failed, but when I changed localhost to 127.0.0.1, as in the second
call, it worked. Given the information I have from you now, I don't see
how the first call could ever work, although the documentation says
that it should. Any ideas?

$conn = mysql_connect("localhost", "root", ""); // This fails.
$conn = mysql_connect("127.0.0.1", "mike", ""); // This works.

Thanks again for your help,
M. McDonnell

 

Navigation:

[Reply to this 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

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