Zend server version?

How can I get the Zend Server version of the PHP script running on this Zend server?

phpinfo (), and php -vthe Zend server version is not indicated on the command line !

+3
source share
4 answers

You cannot get the server version from phpinfo(or, depending on the situation).

I assume that you are after the values โ€‹โ€‹displayed in the Server Control GUI on the monitor | Server information, for example. versionand build. They are stored in $InstallDir/GUI/application/data/zend-server.ini. Your application must have access to the folder in which Ini is located, load the Ini file (using something like Zend_Config), and then you can work with the values.

Note that ZS builds with ZF and the files are not confused, so you can check their source code to see how they access this information. Reusing some of their code is very possible.

+2
source

A quick and dirty way to get it:

$ cat /usr/local/zend/gui/application/data/zend-server.ini | grep version

Here you replace /usr/local/zendwith any alternative path that you could choose.

And you will get some output, for example:

version = 5.6.0
+1

: echo Zend_Version:: VERSION;

0

Open the zs_ui.iniserver .ini file ( zs_ui.ini) and find version.

...\Zend\ZendServer\gui\config\zs_ui.ini

Example: zend_gui.version = 9.0.1

0
source

Source: https://habr.com/ru/post/1731247/


All Articles