|
Posted by Markus Wallner on 07/31/05 15:09
Hi!
I have two files:
First file:
$MAIL_COMMON= "aaa@ddd.com";
Second file: includes first file.
Now, within the second file I define a class which should have a member
initalized with the value of $MAIL_COMMON in file A.
class XYZ {
var $stdmail = $MAIL_COMMON;
}
I always get the error message "unexpected T_VARIABLE in (second file)".
Also tried it with $SESSION and $GLOBALS, but nothing works.
Using PHP 4.0.5, Apache 2.0.54.
What am I doing wrong?
Thanks in advance,
Markus
Navigation:
[Reply to this message]
|