|
Posted by "Jonathan Duncan" on 10/20/54 11:19
I see where you are coming from and it is a good idea. However, in this
particular problem it is not so much DNS related. If I were to use an IP
then the error could very well just say this:
-----------------------------------------------------
Warning: mysql_connect(): Unknown MySQL Server Host '192.1[]8.0.1'
(1) in /usr/local/apache/htdocs/filename.php on line 8 Unknown MySQL Server
Host '192.1[]8.0.1' (1)
-----------------------------------------------------
Thanks,
Jonathan
""Matt Babineau"" <matt@criticalcode.com> wrote in message
news:6C.DC.22648.3E31AB24@pb1.pair.com...
>I bet if you connect using the IP directly it will solve your problem.
>
>
>
> Thanks,
>
> Matt Babineau
> Criticalcode
> 858.733.0160
> matt@criticalcode.com
> http://www.criticalcode.com
>
> -----Original Message-----
> From: Jonathan Duncan [mailto:jonathan@nacnud.com]
> Sent: Wednesday, June 22, 2005 6:27 PM
> To: php-general@lists.php.net
> Subject: [PHP] Something is messing up the php output
>
> I have a site that has this problem every once in a while, and seemingly
> randomly. It is a database driven site, as indicated by the error. This
> same page when loaded numerous times will sometimes work just fine, and
> then
> sometimes it will give an error message like this:
>
> -----------------------------------------------------
> Warning: mysql_connect(): Unknown MySQL Server Host 'hostn[]me.domain.com'
> (1) in /usr/local/apache/htdocs/filename.php on line 8 Unknown MySQL
> Server
> Host 'hostn[]me.domain.com' (1)
> -----------------------------------------------------
>
> Notice that in the word "hostname" the 'a' is not an 'a'. It is one of
> the
> empty boxes that usually indicates an unknown character. Here I represent
> it with square brackets for visual effect.
>
> When the source is check, there is absolutely nothing wrong with the
> hostname in the mysql_connect function. As I mentioned, if this page is
> reloaded it may be fine. After a while it may not have anymore problems
> for
> weeks. Or it may come back the next day. When It is happening I do not
> notice any major server process usage.
>
> The mis-interpreted character problem sometimes truncates a word, or just
> messes up a cerain random characters.
>
> I have had this happen on more than one site on more than one server.
>
> Does anyone have any idea what this may be? I am even accepting wild
> guesses at this point.
>
> Thanks,
> Jonathan
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
Navigation:
[Reply to this message]
|