Home >Backend Development >PHP Tutorial >PHP code running example explanation

PHP code running example explanation

小云云
小云云Original
2018-03-05 11:36:3923885browse

How does php run code? The following article will explain how PHP runs code through a PHP code running example. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

PHP code running example explanation

Step 1: Download Wampserver

warmserver provides a php running environment,
http://www.wampserver.com/ Download Wampserver Portal


Step 2: Write a simple php code

nbsp;html> 
 
 

<?php  
echo "Hello World!"; 
?> 

 

I wrote it using notepad++ text editor. You can temporarily save this file on the desktop. Pay attention to naming the .php file


Step 3: Open Wampserver

PHP code running example explanation

Find the Wampsertver icon, left-click, find the www directory, and click


PHP code running example explanation

Drag the php file I just wrote into it. The name of the file I just wrote is new 1.php


Step 4: Open the browser

Input in the browser: localhost/new 1.php, you can see the effect
PHP code running example explanation

The above is the detailed content of PHP code running example explanation. 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

Related articles

See more