Re: wrong value from define
| From: | Richard Davey | Date: | Wed, 29 Dec 2004 13:35:40 +0000 |
| Subject: | Re: wrong value from define | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205290@lists.php.net to get a copy of this message | ||
Hello Arthur,
Wednesday, December 29, 2004, 12:37:30 PM, you wrote:
A> That's my piece of code (which is in a class in a file which is in the same
A> dir as config.php):
A> function reg($name, $pw, $ally, $act) {
A> include('config.php');
A> echo(DB_SERV_NAME . '<br>');
A> $dbp = mysql_connect(DB_SERV_NAME, DB_USR_NAME, DB_PW);
A> if(!$dbp) die ("MySQL-Fehler");
Show us the define statements? The code above is fine, assuming that
it could find config.php of course (swap it for a require to get a
fatal error).
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde