Jump to content

different results betwen PHP cli && APACHE module on SIN function


pendexgabo

Recommended Posts

hi all,

i having some issues with a script cron... but when a run the script through firefox runs ok.

i figured out this

 

in the command line i do :

 

php -r "echo sin(46);"

0,901788347649 (with comma) and then mysql breaks the query...

 

but in the firefox

 

<?

echo sin(46);

?>

 

prints 0.901788347649 (with dot) and the mysql query runs ok

 

 

any idea why php cli change the dot for a comma.

 

there is some config in the php.ini ??

 

saludos

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.