Page 1 of 1

How to know the version of PHP that was installed with Linux

Posted: Wed Apr 07, 2004 2:28 pm
by hillxy
as title,
Iam thinking of upgrade it, but as least I need to know its version.
thanks,

Posted: Wed Apr 07, 2004 2:52 pm
by patrikG
[php_man]phpinfo[/php_man]

Reading the manual: priceless ;)

Posted: Wed Apr 07, 2004 2:54 pm
by lostboy

Code: Select all

<?php
phpinfo();
?>

Posted: Wed Apr 07, 2004 3:41 pm
by hillxy
Thank you!

Posted: Wed Apr 07, 2004 6:07 pm
by werlop
Or

Code: Select all

<?php

echo PHP_VERSION;


?>
It's one of the predefined constants:

http://www.php.net/manual/en/reserved.c ... s.core.php