How does the server detect the current website php version, and modify the php upload attachment parameters?

Published: 2020-01-03

In our company's 网站管理助手 environment, multiple versions of php are supported. For some reasons, you may need to change the parameter configuration of php, but because the currently used php was not modified, the changes were not seen to take effect. Detecting the php version of the current website is very simple:

<?php
phpinfo();
?>
Copy this code, write it into Notepad, save it as x.php, then upload this file to the root directory of the website. Access it through www.xxx.com/x.php to see the php version. This page will also show the storage path information of php.ini. Our company's default php installation path is d:\SOFT_PHP_PACKAGE\


For modifying upload attachment parameters, please refer to: https://www.west.cn/faq/list.asp?unid=409