: This article mainly introduced the beginning of PHP--1. everything, for PHP tutorials interested in students can refer. Recently, I always want to write something, but I can't afford to write anything. So, let's sort out the things that I 've made. everything started on a dark night --
A burst of Thunder, 56 K kitten burned, pants are taken off, dark, suddenly catch feet dizzy, burning in anger, suddenly a big drink-I want to do a website to yourself!
At that time, ASP had No. net, PHP had no objects, and JSP was gaining momentum. It's like melgipson's roar-"Freedom !", I chose PHP for advocating freedom.
Like Shaolin, many of the syntax features of PHP are derived from C, and some are derived from Perl. So if you have C skills, congratulations, PHP is easy to master.
At that time, almost all basic courses in the university were based on C as the teaching language, such as the compilation principle and data structure. Therefore, PHP is very quick for me to get started.
Many people always ask how to learn PHP. In fact, the first and most important factor to learn any technology or language is interest. It seems that I have been studying Japanese for two years. The most impressive thing now is that I love し て (also known as the legendary ), another example is that I want to create a website for myself (do not delve into the content of the website-_-| ). If you are interested, all the difficulties will be converted into fun and achievement!
All languages are tricks. you can learn these tricks by memorizing the syntax and theories, but you really want to use them freely and make them powerful, you need to cultivate internal skills-object-oriented thinking, data structures, algorithms, and design patterns ......
There is no shortcut to anything, and the most stupid method is the best method. so let's just give up the idea of achieving things in 10 days. The same function is completely different from one who has no experience or one year of experience, three years of experience, or 10 years of experience. (you can simply skip Urn ). Just like a hero, the real programmer is Kubernetes (kong) alone (xu) Ji (yin) Yao (dang.
Therefore, if you are planning to learn PHP, you must first make sure that you are confident enough to bear the loneliness and loneliness.
If you want to build a website, the server is indispensable. although most PHP's real runtime environment is Linux, most PHP development environments are actually completed on Windows, because Windows is too convenient. We recommend that you use either WAMP or XAMPP. You can easily install the basic PHP environment.
The general runtime environment of PHP is soy sauce:
Apache is also known as a Web Server. Therefore, a server is not a hardware, but a software. it is responsible for processing http requests. Besides Apache, Nginx is also popular. Beginners do not have to worry about the differences in details. simply select Apache.
PHP is also a program responsible for parsing and running the PHP code we have compiled. Therefore, the PHP in the figure is actually a PHP parser. PHP has no compilation process, and the source code can be directly executed.
Mysql is an open-source and free database (this product was recently acquired by Oracle, so many people began to worry about Mysql closed source). MariaDB is a substitute developed by Mysql founder after Mysql was acquired, in Linux, MariaDB has been used to replace Mysql. However, it does not matter for beginners. you can think that they are the same thing and everything is the same.
After installing the basic running environment, you can start learning PHP. in this way, you can start your first webpage:
It will output your PHP details.
First, we can see the PHP version number. this is very important because the differences between PHP versions are large. The versions with major differences recently are those before and after version 5.3. many new features are added in version 5.3, which is more convenient to use, but are not supported by the previous version.
When you are bored, I will continue writing! Welcome to the Hello PHP Group (222578556). let's talk about ideals, life, and soap !?
The above introduced the play said PHP--1. all the beginning, including the content of the aspect, hope to be interested in PHP Tutorial friends help.