MySQL Forums
Forum List  »  PHP

Re: Unknown MySQL server host 'DB_SERVER' (11004)
Posted by: Anna Gherib
Date: August 07, 2009 09:27AM

I had the same problem with Linda tutorial.
I solved it by posting require_once("../includes/config.php"); in index.php right above require_once("../includes/database.php");
So, I used both references to make it work.
My index.php looked like:
<?php
require_once("../includes/config.php");
require_once("../includes/database.php");

if(isset($database)) { echo "true"; } else { echo "false"; }
echo "<br />";

?>
Good luck!

Options: ReplyQuote


Subject
Written By
Posted
Re: Unknown MySQL server host 'DB_SERVER' (11004)
August 07, 2009 09:27AM


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.