Main content:
- Build PHP development environment
- First HelloWorld Program
PHP (hypertext Preprocessor) PHP hypertext preprocessor, is a scripting language embedded in HTML, running on the server.
Build PHP development environment
PHP development environment is mainly 3 parts: Server Apache, programming language PHP, database MySQL. Build the development environment, directly using the XAMPP integrated installation can be.
Xampp=apache+mysql+php+perl,x represents a cross-platform.
Download and install the website: https://www.apachefriends.org/zh_cn/index.html
(Installation is too simple, there is nothing to say, but if previously installed Tomcat,apache,mysql, etc., xampp part of the function can not be used, the solution online a lot, no longer talk about)
First HelloWorld Program
PHP can be edited using note++.
helloworld.php
<?phpecho "Hello world!";? >
Then run the XAMPP Control Panel, click Apache Start, Green is normal operation.
Then put the helloworld.php file in the path: C:\xampp\htdocs
Browser input: http://localhost/helloworld.php
OK, our first PHP program is complete.
PHP Quick Start