Page 1 of 1

Any help, with this welcome

Posted: Wed Sep 06, 2006 7:09 am
by jumpmuppet
Hi would greatly welcome any help with this

,,,////////////turn it into currency/////////////////////
setlocale(LC_MONETARY, 'en_US');
$price = money_format('%(#10n', $price) ;
$pricehigh = money_format('%(#10n', $pricehigh) ;
////////////turn it into currency/////////////////////

Above written for Linux based server.... Anybody got an idea how i can change it to run on windows??? ::)

Posted: Wed Sep 06, 2006 12:03 pm
by n00b Saibot
have to tried to run it on windows... ?

MMMMM

Posted: Wed Sep 06, 2006 1:42 pm
by jumpmuppet
General failure????? Hard disk reading???

script will not run in windows,,, Money_Format is undefined,,, hence the reason to get a version of this similar to run on windows server....

any ideas

Posted: Wed Sep 06, 2006 2:42 pm
by n00b Saibot
PHP Manual wrote: Usage: string money_format ( string format, float number )

Purpose: Formats a number as a currency string
Availability: PHP 4 >= 4.3.0, PHP 5
so there is such a function in PHP. try running it atleast...

Posted: Wed Sep 06, 2006 3:24 pm
by nickvd
I just tried on my windoze box, and although php.net says the function exists on (PHP 4 >= 4.3.0, PHP 5), it isn't on my version (5.1.4)...

Very Strange

Posted: Wed Sep 06, 2006 3:30 pm
by n00b Saibot
eeps, my bad!! sorry.. :oops:
PHP Manual wrote: Note:
The function money_format() is only defined if the system has strfmon capabilities. For example, Windows does not, so money_format() is undefined in Windows

Posted: Wed Sep 06, 2006 3:30 pm
by feyd