Quantcast
Channel: WampServer - WampServer Francais
Viewing all articles
Browse latest Browse all 3482

dot separator instead of comma for decimal (1 réponse)

$
0
0
Hello all,

I'm trying to correct some configuration on number separator on wampwerver for php, here are my versions :

WampServer Version 3.1.7 64bit
Created by Romain Bourdon (2005)
Maintainer / Upgrade to 2.5 by Herve Leclerc
Upgrade to 3 by Otomatic (wampserver@otomatic.net)
Multi styles for homepage by Jojaba
Installer by Inno Setup: [www.jrsoftware.org]
Forum Wampserver: [forum.wampserver.com]
______________________ Versions used ______________________
Apache 2.4.37 Port 80- PHP 7.2.14
MySQL 5.7.24 Port 3306
PHP 5.6.40 for CLI (Command-Line Interface)

And i confirm that my wampserver icon is green.

Since this week i was using a VM on Linux with an apache web server, installed by me.
This was a copy of the webserver i'm using for all my environment at work, test and production included.

My VM isn not usable anymore because we stopped paying for the license ( and this choice is out of my hands ) so i tryed to used again wampserver. I haven't used it since my studies 8 years before so i hope my problem come from a misunderstanding of mine.

I run it on a windows 10 professional edition in french ( because i'm french and it's a company computer ), so i had selected french has language during the installation.

We are using git so i'm totally sure my php code is the same on my linux webserver than in my wamp.

When i work in local with wampserver, decimal number are comma separated, which is not at all what i want it to do. On my Linux webserver, these decimal number are dot separated has they should be.

I'm a web developper but i have to admit i'm not totally at ease with apache configuration except for basics part like error management.

This difference of separator between my two servers ( local and online ) makes thing really hard for me when i try to test something because my server work linked to an ERP ( IFS or SAP ) and they expect a format with dot for decimal separator.

I would like to change this in my configuration because i don't want to use number_format or str_replace in each of my codes to correct the format, corresponding to the environement i'm using.

I have obviously done some researches before posting here but i've only founded answer which ask me to edit my php codes and i have a lot of them ( arround 6 years of work ) and i don't want to edit codes which work perfectly in prodcution environment on my apache webserver on centos.

Except this problem about decimal separator, my wampserver works perfectly well, even with my differents databases ( oracle / mysql ) on all my environments ( i've tryed to link it to my production database without any error ).

It seems that i can't copy paste my php.ini here because of a character limit so ask me if you need more information to help me with this case.

Sorry if my english is not perfect, as i said, i'm not a native.

Viewing all articles
Browse latest Browse all 3482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>