PHP, "Hypertext Preprocessor", is a general open source scripting language. PHP is a scripting language executed on the server side. It is similar to C language and is a commonly used website programming language.
PHP runs in a server environment. If you want to run PHP, you need to build a php operating environment. WAMP, phpstudy, and xampp are all available. Install one.
Then throw the PHP file into the www folder, enter the access path in the browser: http://localhost/your file, and you can run the PHP file to display the results.
Introduction to php running environment
Based on Linux platform
LNMP: Linux, Nginx, MySQL, PHP
LAMP: Linux, Apache, MySQL, PHP
Based on Windows platform
WAMP: Windows, Apache, MySQL, PHP
phpstudy: Apache PHP MySQL phpMyAdmin ZendOptimizer
Whether it is LNMP, LAMP, or WAMP, we can install and configure it, but as a quick starter, we can not worry about which environment to use for the time being, nor how to configure the environment independently for the time being. Moreover, our predecessors have already prepared integrated environments for us, such as phpstudy, wamp, xampp, easyphp, etc. Here we recommend phpstudy's PHP running environment building tool on the windows platform, which is very easy to use.
The above is the detailed content of What is needed to run php?. For more information, please follow other related articles on the PHP Chinese website!