MySQL Forums
Forum List  »  PHP

Re: Unknown MySQL server host 'DB_SERVER' (11004)
Posted by: Rick James
Date: June 12, 2009 09:05AM

According to the error message you have not defined DB_SERVER.
Let's see the included file and the require_once statement; perhaps there is an unobvious error there.

You are in a class -- I don't know if constants are scope such that methods in the class cannot see them. I do know that is the case with variables; perhaps a global statement would solve it?

Options: ReplyQuote


Subject
Written By
Posted
Re: Unknown MySQL server host 'DB_SERVER' (11004)
June 12, 2009 09:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.