Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Currency in PHP on a Windows server 1

Status
Not open for further replies.

ralphonzo

Programmer
Apr 9, 2003
228
GB
It seems like it's the Windows server that's due to host the site that's causing all of my efforts to render USD results, however much I try to use setlocale(LC_MONETARY, 'en_GB');

Does anyone know of a way around this issue?
 
Does nobody know how to force a currency choice on a windows server?
 
i suspect it's to do with LC_ALL but i don't know many people that develop on windows.
is the format defined in the windows control panel, for example? and if so are you expressly using setlocale to reflect the same name as used in the CP?

personally I'd go for number_format() and add in the currency symbol by hand
 
Thanks for that. I think I'll try the number_format() option.
 
Thanks jpadie, that workrd a treat. I confess I'm an ASPer - sorry!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top