Page 1 of 1

GMP functions

PostPosted: 24. February 2009 15:04
by Komplexbs
Hello,

I recently tried to use the gmp_prob_prime PHP function but it encountered in an error and it seems that even though I uncommented the gmp extension it does not load.What should I do?

Best Regards

Re: GMP functions

PostPosted: 24. February 2009 15:11
by Wiedmann
even though I uncommented the gmp extension it does not load.

Maybe you are doing this in a wrong "php.ini"?

Re: GMP functions

PostPosted: 24. February 2009 22:07
by Komplexbs
Nope I uncommented it in all php.ini files.

Re: GMP functions

PostPosted: 24. February 2009 22:15
by Wiedmann
Well, I have no problem loading this extension, after enabling it in the one correct "php.ini".

You can change "display_startup_errors" in "php.ini" to "on" and see if something is in the error.log from Apache.

Re: GMP functions

PostPosted: 24. February 2009 22:24
by Komplexbs
No there is no problem there,everything started normally.To add some more information:

I am using the php 5.2.6 version and I edited both php.ini and php5.ini in the php directory and then stopped and started apache but still nothing.

Re: GMP functions

PostPosted: 24. February 2009 22:27
by Wiedmann
and I edited both php.ini and php5.ini in the php directory

Ask phpinfo() which is the correct "php.ini".

Re: GMP functions

PostPosted: 24. February 2009 22:32
by Komplexbs
Ah of course!Thank you :) the problem was that it was pulling the options from the php.ini in apache/bin .Thank you again.