Home >Backend Development >PHP Tutorial >PHP gets php, mysql and apache versions

PHP gets php, mysql and apache versions

WBOY
WBOYOriginal
2016-07-25 08:54:541265browse
  1. echo "PHP software version:".phpversion();
  2. ?>
Copy code

2 to get the MYSQL version

  1. mysql_connect('127.0.0.1','root','');
  2. echo mysql_get_server_info();
  3. ?>
Copy code

3, get Ap ache version

  1. $version=apache_get_version();
  2. echo "$version";
  3. ?>
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn