How to see the result of executing php file in linux

angryTom
Release: 2019-10-18 10:34:18
Original
3440 people have browsed it

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
Copy after login

CentOS

yum install php56 php56-php php56-php-mbstring php56-php-fpm php56-php-mysql php56-php-gd -y
Copy after login

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

index.php

<?php
// TODO
echo &#39;www.php.cn&#39;;
?>
Copy after login

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

www.php.cn
Copy after login

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!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template