How to query in php

藏色散人
Release: 2023-02-25 22:56:01
Original
2922 people have browsed it

How to query in php

phpHow to query PHP information?

1. Method 1:

Command line query. If the environment variables have been configured, enter php -v directly on the command line and it will be displayed. PHP version information. If the environment variable is not configured, directly enter the PHP installation directory on the command line, then enter the command php -v, enter the query command in the installation directory, and you can see that the output version information is PHP5.3.29.

How to query in php

2. Method 2:

(1) Use the predefined constant PHP_VERSION to query, create a new php file, and enter it in it .

How to query in php

# (2) Output the corresponding URL in the browser to view the version information of php.

How to query in php

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of How to query in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
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