Re: [PHP] Is Function Constants the Correct Term?

2004-07-18 Thread gohaku
* Thus wrote gohaku: Hi everyone, I have been experimenting with defining functions as constants. Below is what I am using to test Function Constants: pre ? define(LOGIN,user); define(PASS,pass); define(DB,mysql); define(DBLOGIN,dblogin(LOGIN,PASS,DB)); This is simply not allowed. see:

Re: [PHP] Is Function Constants the Correct Term?

2004-07-18 Thread Larry E . Ullman
I have been experimenting with defining functions as constants. Below is what I am using to test Function Constants: pre ? define(LOGIN,user); define(PASS,pass); define(DB,mysql); define(DBLOGIN,dblogin(LOGIN,PASS,DB)); This is simply not allowed. see: http://php.net/define Can you elaborate on

RE: [PHP] Is Function Constants the Correct Term?

2004-07-18 Thread Mark Charette
The specific statements: From http://us2.php.net/manual/en/language.constants.php 'Once a constant is defined, it can never be changed or undefined.' 'Only scalar data (boolean, integer, float and string) can be contained in constants.' 'Constants may not be redefined or undefined once they have

Re: [PHP] Is Function Constants the Correct Term?

2004-07-17 Thread Curt Zirzow
* Thus wrote gohaku: Hi everyone, I have been experimenting with defining functions as constants. Below is what I am using to test Function Constants: pre ? define(LOGIN,user); define(PASS,pass); define(DB,mysql); define(DBLOGIN,dblogin(LOGIN,PASS,DB)); This is simply not allowed.

Re: [PHP] Is Function Constants the Correct Term?

2004-07-17 Thread John W. Holmes
Curt Zirzow wrote: * Thus wrote gohaku: Hi everyone, I have been experimenting with defining functions as constants. Below is what I am using to test Function Constants: pre ? define(LOGIN,user); define(PASS,pass); define(DB,mysql); define(DBLOGIN,dblogin(LOGIN,PASS,DB)); This is simply not