Re: [PHP] wrong value from define

2004-12-29 Thread Arthur
> 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 . ''); > A>

Re: [PHP] wrong value from define

2004-12-29 Thread Richard Davey
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 . ''); A> $dbp = mysql_connect

[PHP] wrong value from define

2004-12-29 Thread Arthur
Hi, in the following code, i want to get a constant value from config.php. I don't receive the value, that is defined, but the name of the constant. I tested the defines in config.php by echoing all defines, and it was allright, so i'm quite confused why it doesn't work here. That's my piece of c