Page 1 of 1

Constant CURRENCY_SYMBOL = 262145 predefined

PostPosted: 24. July 2008 01:11
by sholahan
I just installed xampp 1.6.7 for linux. Now in my site I defined CURRENCY_SYMBOL as
define(CURRENCY_SYMBOL, "$");

But when I display the value it is 262145. I made a test page that just did a display of CURRENCY_SYMBOL, with defining it and it still displayed 262145. So it looks like xamp is defining this value but I can not find it.

I also have xamp 1.6.7 for windows installed on another machine which works fine.

Any one have any idea?

thank you.

PostPosted: 24. July 2008 01:22
by Wiedmann
CURRENCY_SYMBOL is a predefined PHP constant.

PostPosted: 24. July 2008 01:28
by sholahan
That is what I thought, but I did not understand why it is predefined in linux and not in windows xampp. Would you know why it is set to 262145.

PostPosted: 24. July 2008 01:47
by Wiedmann
but I did not understand why it is predefined in linux and not in windows xampp.

Not all PHP functions are availible on all OS.

Would you know why it is set to 262145.

Why not?
--> if you need the the value 262145 as parameter for a function, it's easier to rember e.g. the constant name "CURRENCY_SYMBOL" then the integer "262145".

PostPosted: 24. July 2008 01:58
by sholahan
Thank you for the info.