Re: help: bcdiv() & gmp_div()
| From: | David Robley | Date: | Mon, 28 Apr 2003 11:19:27 +0000 |
| Subject: | Re: help: bcdiv() & gmp_div() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145506@lists.php.net to get a copy of this message | ||
In article <20030428070927.4039.qmail@pb1.pair.com>, boblarry@wsas.net
says...
> im using php 4.2.1 and these functions seem to be undefined...
>
> can anyone shed any light on this? i cant find any documentation to explain
> why these functions wont work, and ive had people try with current php, to
> no avail
The manual states (for bcmath):
"Installation
In PHP 4, these functions are only available if PHP was configured with --
enable-bcmath. In PHP 3, these functions are only available if PHP was NOT
configured with --disable-bcmath."
and for GMP
"Requirements
You can download the GMP library from » http://www.swox.com/gmp/. This
site also has the GMP manual available.
You will need GMP version 2 or better to use these functions. Some
functions may require more recent version of the GMP library.
Installation
In order to have these functions available, you must compile PHP with GMP
support by using the --with-gmp option."
Perhaps your particular version of PHP does not have the functions
enabled? Try phpinfo() to tell you what is available.
--
Quod subigo farinam
$email =~ s/oz$/au/o;