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
<?php // TODO echo 'www.php.cn'; ?>
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!