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

PHP gets php, mysql and apache versions

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-25 08:54:54
Original
1280 people have browsed it
  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 of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template