I am porting code I used for one project into another and am receiving errors when I try to use the built in function "round". I can create my own round function and the code will work, but I'd like to know why the built in round function isn't working for this version of php. The server is using php 4. How do I find where the built in functions are stored to see if perhaps the round function is missing? This is extremely frustrating for such a small issue, please help!
Thanks!
Mike
Where are built in functions stored?
Moderator: General Moderators
What kind of server is it? (OS? your own machine? php as binary packet or from source? ...)
round() is part of the Math module
round() is part of the Math module
http://de2.php.net/manual/en/ref.math.php wrote:Installation
There is no installation needed to use these functions; they are part of the PHP core.
It is being stored on a linux slug. phpinfo() is displayed here:
http://flash.me.berkeley.edu:8080/phpinfo.php
http://flash.me.berkeley.edu:8080/phpinfo.php
I don't no. But the error message for an undefined function is different.
Code: Select all
<?php
error_reporting(E_ALL); ini_set('display_errors', true);
notAFunction();
?>Fatal error: Unknown function: notafunction() in [...] on line 3