Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- how do I check against the PHP version?
November 23, 2004, 3:37 am
rate this thread
system. I've written the code to be compatible with PHP 4.06 or later.
I need to get the PHP version and throw an error message if the
version is less than 4.0.6. I realize that phpinfo outputs the info,
but what function would get me the version string?
Re: how do I check against the PHP version?
Kevin Lin of comp.lang.php make plain:
Of course, that's only good if the installation is 4.1.0 or greater :)
There is a version check function in HoloLib:
Phorm PHP Form Processor