跳到主要内容
版本:latest

GetPHPVersion

获取面板上已安装的所有 PHP 版本及运行状态。

  • 路由POST /site
  • actionGetPHPVersion

输入参数

参数名称必选类型描述
actionString固定值 GetPHPVersion

输出参数

返回数组,每项:

参数名称类型描述
versionString版本号,00 表示纯静态
nameString显示名称,如 PHP-85纯静态
statusBoolean是否正在运行

示例

请求

POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

request_time=1700000000&request_token=xxx&action=GetPHPVersion

响应

[
{"version": "00", "name": "纯静态", "status": true},
{"version": "85", "name": "PHP-85", "status": true}
]