How to use php code?
Download Wampserver
warmserver provides an environment for PHP to run
The installation steps are not given here, search Just one click.
Write a simple php code
<!DOCTYPE html> <html> <body> <?php echo "Hello World!"; ?> </body> </html>
I use notepad Written in a text editor, this file can be temporarily saved on the desktop. Pay attention to the name of the .php file
Open Wampserver
Find the Wampsertver icon, left-click, find the www directory, click
Open the browser
Enter in the browser: localhost/new 1.php and you can see the effect
More For PHP related knowledge, please visit PHP中文网!
The above is the detailed content of How to use php code. For more information, please follow other related articles on the PHP Chinese website!