How to check php version in linux

王林
Release: 2023-02-26 16:28:01
Original
26894 people have browsed it

How to check php version in linux

1. phpinfo() function of php

Copy after login

Running result: php version

How to check php version in linux

2. Execute php -v from the linux or windows command line

How to check php version in linux

Use php -v directly. You need to configure the environment variables of php, which are not configured. When setting environment variables, you can use the path of php.exe instead of php, see the picture below

How to check php version in linux

Recommended tutorial:PHP video tutorial

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

Related labels:
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!