denc Posted February 4, 2013 Share Posted February 4, 2013 Hi all, I'm quite new to PHP scripting. I would like to check with you what would the subjected error mean? Is it something I have to check with the web-hosting company? I thought gmp_intval() is some standard function in php, no? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
kicken Posted February 4, 2013 Share Posted February 4, 2013 I thought gmp_intval() is some standard function in php, no? No, they come from an extension which you have to enable, either with a flag when compiling PHP or specifying it in the php.ini file. If you're using a hosting company then you should contact their support to see if they can enable it for you (or give you instructions on how to enable it yourself). Quote Link to comment Share on other sites More sharing options...
denc Posted February 4, 2013 Author Share Posted February 4, 2013 Is there any way I can verify whether it has already been enabled? I still have the same problem, but they were telling me that they have successfully enabled GMP math library. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 4, 2013 Share Posted February 4, 2013 There will be a GMP section in the phpinfo output - gmp gmp support enabled MPIR version 2.5.1 Quote Link to comment Share on other sites More sharing options...
kicken Posted February 4, 2013 Share Posted February 4, 2013 Create a file called phpinfo.php and put in it the following code: <?php phpinfo(); ?> When you load it you'll see a bunch of information about PHP's configuration and it's loaded extensions. There should be a section somewhere in there for GMP if it is enabled. Quote Link to comment Share on other sites More sharing options...
Christian F. Posted February 4, 2013 Share Posted February 4, 2013 (edited) Upload a PHP file containing phpinfo (), and run it. If you can find the extension listed in there, it's activated. If not, well... I guess that scenario would be obvious. *Christian kicks the "new post" notification lag. Edited February 4, 2013 by Christian F. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.