Transferred from: http://www.cnblogs.com/wangkangluo1/archive/2011/07/19/2110943.html
A moment to download
Xampp:https://sourceforge.net/projects/xampp/?source=typ_redirect (formerly address 404)
Installing the Windows PHP environment requires Apache PHP mysql three modules, I directly download the three-in-one version
Two-Installation
Double-click "Xampp-portable-win32-5.6.21-0-vc11-installer.exe" to install it all the way down
Note: The installation directory should be empty
Three Hello World
- open page : On start->xampp Control Panel open
- Open service : launch Apache MySQL service
-
- access authentication: access page: 127.0.0.1
- Write Hello World
-
- Go to installation directory: D:\XAMPP\htdocs (i installed on D-drive)
- Create a new helloworld.php text file and save
<? PHP Echo "Hello World,"; // output string: on page Echo "This is my firstphp script,"; // output string, no line break Echo Phpinfo () ///phpinfo () is a system function that outputs PHP environment information ?>
- Visit page: 127.0.0.1/helloworld.php
Four questions
Did not encounter any problems, back to continue to study, encountered a supplement came in.
"PHP" Hello World