Home > Backend Development > PHP Tutorial > Joking about PHP - 1. The beginning of everything

Joking about PHP - 1. The beginning of everything

WBOY
Release: 2016-08-08 09:32:03
Original
931 people have browsed it

I always want to write something lately, but I can’t remember what to write, so let’s sort out the things I have messed around with. It all started on a dark and windy night of a month——

One click The thunder exploded, the 56k kitten was burned, and his pants were taken off. In the darkness, I suddenly rushed to my feet, dizzy, and furious. I suddenly shouted - I want to make a website for myself!

At that time, ASP did not have .net, PHP had no target, and JSP was gaining momentum. Just like Mel Gibson's roar-"Freedom!", advocating freedom, I chose PHP.

Just like the world’s martial arts originated from Shaolin, many of PHP’s grammatical features are derived from C, and some are derived from Perl. So if you have C skills, congratulations, PHP is easy to master.

In universities at that time, almost all basic courses were taught in C, such as compilation principles and data structures. Therefore, PHP is very fast for me to get started with.

Many people always ask how to learn PHP. In fact, the first and most important factor in learning any technology or language is-Interest

. It’s like I’ve been studying Japanese for two years, and now the one that impressed me most deeply besides Aiしてる is やめて (that is, the legendary Yabicho). Another example is that I want to make a website for myself (don’t delve into the content of the website-_- |||). With interest, all difficulties will be converted into fun and a sense of accomplishment!

All languages ​​are moves. You can memorize grammar and theory to master these moves, but if you really want to use them freely and achieve infinite power, you need to cultivate your internal skills - object-oriented thinking and data Structure, algorithm, design pattern...

There are no shortcuts to anything. The stupidest way is the best way, so just give up on those ideas like 10-day quick fix. The same function written by someone with no experience and someone with 1 year of experience, 3 years of experience, or 10 years of experience is completely different (not to mention the kind that is so simple that it can be directly reverted). Just like a hero, a real programmer is lonely (kong) alone (xu) lonely (yin) lonely (dang).

So friends who plan to learn PHP must first make sure that they are determined enough to endure the loneliness and loneliness.

If you want to build a website, you naturally need a server. Although the real running environment of most PHP is Linux, most PHP development environments are actually completed on Windows, because Windows is so convenient. It is recommended that novices use WAMP or XAMPP, just choose either one. You can easily complete the installation of the PHP basic environment.

PHP’s regular operating environment is purple:

Apache is commonly known as Web Server, which is the server. Therefore, the server is not a piece of hardware, but a piece of software that is specifically responsible for processing HTTP protocol requests. In addition to Apache, Nginx is also very popular. Beginners don't need to worry about the differences in details, just choose Apache.

PHP is also a program that is responsible for parsing and running the PHP code we wrote, so the PHP in the picture is actually the PHP parser. PHP has no compilation process and the source code can be executed directly.

Mysql is an open source and free database (this product was recently acquired by Oracle, so many people are beginning to worry about Mysql being closed source). MariaDB is a replacement developed by the founder of Mysql after Mysql was acquired. It has been included in the Linux system Start using MariaDB instead of Mysql, but it doesn't matter for beginners, you can think of them as the same thing, everything is the same.

After completing the installation of the basic operating environment, you can start learning PHP. You can start your first web page like this:

<span style="font-family:Microsoft YaHei;"><?
	phpinfo();
?></span>
Copy after login

He will output your PHP details.

First you can see the PHP version number. This is very important because the differences between different versions of PHP are still relatively large. The most different versions recently are those before and after 5.3. 5.3 adds many new features that are more convenient to use, but they are not supported by previous versions, so you need to pay attention.

When I get bored, I will continue writing! Welcome everyone to join the Hello PHP group (222578556), let’s talk about ideals, life, and pick up soap together! ?

The above introduces the joking about PHP - 1. The beginning of everything, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template