Home  >  Article  >  Operation and Maintenance  >  How to see the result of executing php file in linux

How to see the result of executing php file in linux

angryTom
angryTomOriginal
2019-10-18 10:33:163308browse

How to see the result of executing php file in linux

How to see the result of executing php file on linux

1. First, make sure that php is installed on the linux system. If not, please install

Debian

sudo apt-get install php7.2

CentOS

yum install php56 php56-php php56-php-mbstring php56-php-fpm php56-php-mysql php56-php-gd -y

2. Then write a php code file and write echo statements where needed to print. Out the results

index.php

3. Finally execute php index.php to view the results

www.php.cn

Recommended Tutorial: Linux Video Tutorial

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

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