Web Hosting Talk







View Full Version : PHP Info and paths


DataDork
07-18-2005, 09:08 PM
Is there a script that can tell me what verson of PHP I am using and if ZEND if installed?

Resolved - phpinfo.php did the trick...

Thanks

Burhan
07-19-2005, 05:29 AM
Easier that going through all that :

phpversion() (http://php.net/phpversion)
zend_version() (http://php.net/zend_version)

If you want to know the php version of your command line binary, you can use php -v -- sample output:


-bash-2.05b$ php -v
PHP 4.3.10 (cli) (built: Dec 23 2004 01:41:05)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies
with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies

NameNick
08-13-2005, 08:56 AM
Originally posted by DataDork
Resolved - phpinfo.php did the trick...
Thanks [/B]

But only, if it has the functiion phpinfo() in it.

NN