Re: [PHP] redefine constants

2001-02-28 Thread Chris Lee
consants must be scalar, they can not be references. http://php.net/manual/en/function.define.php what your looking for is this. this is invalid syntax though, I dont know how to answer your question though, sorry :( -- Chris Lee Mediawaveonline.com ph. 250.377.1095

RE: [PHP] redefine constants

2001-02-28 Thread Neil Kimber
s is a pain only with the parser 'constants', you wouldn't need a reference to your own constants as they never change. -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: 28 February 2001 16:13 To: [EMAIL PROTECTED] Subject: [PHP] redefine constant

[PHP] redefine constants

2001-02-28 Thread Christian Dechery
why can't I redefine __LINE__? like define(LN,__LINE__); it's a rather big constant to put in code to generate my error messages, I was thinking more of L, or LN... but if I redefine it, it assumes the value of de redefine() line of code... so it's not really redefining a constant it's only a