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 allowed.
see: http://php.net/define
damn... I had just rewritten my entire application to use this!!
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php