Re: bcdiv() function not recognized
| From: | Jochem Maas | Date: | Fri, 16 Jun 2006 13:34:11 +0000 |
| Subject: | Re: bcdiv() function not recognized | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238164@lists.php.net to get a copy of this message | ||
Mauricio Pellegrini wrote:
> Hi all,
> I'm usuing bcdiv like this
(you wouldn't believe the number of times I type 'I sue' instead
of 'I use' - and I don't even live on the continental US ;-)
>
>> $someVar=bcdiv($timedifference,86400);
>
> and it works perfectly on my local server apache 1.329 , php 4.34 and
> suse 8.2
>
>
> But when I put that module on the production server I get this error
>
> Fatal error:Call to undefined function:bcdiv() in /www/tst.php on line 9
the bc extension is not available on the production server it seems
(have a look at the output of phpinfo() to see if '--enable-bcmath'
is part of the configure line, my guess it that it's not.
more info on this here: http://php.net/bc
>
>
>
>
> Production Server is Suse 8.2 apache 1.329 php 4.34
>
>
> What could be the problem here ?
>
>
> Thanks
> Mauricio
>