The play says Php--1. The beginning of Everything

Source: Internet
Author: User
Tags learn php php development environment php tutorial
recently always want to write something, but can not remember what to write, then tidy up the things you churn, everything began in a month black night--

Clicked a clap, 56k kitten burned, trousers are off, a piece of darkness, suddenly bright dizzy, angry, suddenly shouted-I want to make a website of my own look!

At that time, the ASP has not. net,php also has no object, JSP momentum is fierce. It's like Braveheart's Roar--"freedom! "I chose PHP as a free-advocate.

As if the world's martial arts out of Shaolin, many of PHP's grammatical characteristics are derived from C, and part of Perl. So if you have the foundation of C, congratulations, PHP is easy to master.

At that time, almost all the basic courses in the university were based on C as the language of instruction, such as compiling principles and data structures. So, PHP is very quick for me to get started.

Many people always ask how to learn PHP, in fact, learning any technology or language, the first element is the most important factor is- interest . As if I have studied Japanese for two years, now the most impressive except love してる is やめて (that is, the legendary Elegance Minute fly butterfly), and then I want to do a self-view of the site (the content of the site do not delve into-_-| | | )。 With interest, all the difficulties will be converted into fun and fulfilling sense!

All the language, are moves, you can mature back grammar and theory to master these moves, but really want to use freely, to do the power of infinite, you need to cultivate internal strength-object-oriented thinking, data structure, algorithms, design patterns ...

Anything, there is no shortcut, the most stupid way is the best way, so those 10 days of the idea of the crash, give it up directly. The same function, with no experience and 1 years of experience, 3 years of experience, 10 years of experience written by people, is completely different (the kind of simple to direct renturn do not say). Like a warrior, the real programmer is the lone (Kong) solitary (Xu) lonesome (Dang).

Therefore, the intention to learn PHP friends, first of all to determine that they have enough determination to withstand the loneliness and loneliness.

Want to do the site, naturally without the server, although most of the PHP real environment is Linux, but most of the PHP development environment, is actually done on windows, because Windows is too convenient. Recommended Novice Use Wamp or XAMPP two sets, choose one of them. You can easily complete the installation of basic PHP environments.

The normal operating environment for PHP is Jiangzi:

Apache is known as the Web server, which is the server. Therefore, the server is not a hardware, but a software, it is specifically responsible for processing the HTTP protocol request. In addition to Apache and Nginx is also very popular. Beginners do not have to worry about the details of the differences, direct selection of Apache just fine.

PHP is also a program, specifically responsible for parsing and running the PHP code we write, so the diagram of PHP, is actually PHP parser. PHP does not compile the process, the source code can be directly executed.

MySQL is an open source free database (this shipment was recently acquired by Oracle, so many people are starting to worry about MySQL closed source), Mariadb is the MySQL founder after the acquisition of MySQL, the development of alternatives, Linux has started using mariadb instead of MySQL, but for beginners it doesn't matter, you can think of them as the same thing, everything is the same.

Complete the basic operating environment installation, you can start the PHP learning, you can start your first Web page:

  
   

He will output your PHP details.

First you can see the PHP version number, this is very important, because the difference between different versions of PHP is still relatively large. The most recent difference between the version is 5.3, 5.3 added a lot of new features, easier to use, but it is not supported by the previous version, need attention.

when bored, I will continue to write! Welcome everyone to join Hello PHP Group (222578556), we all talk about ideals, talk about life, pick up soap!?


The above describes the play said Php--1. The beginning of everything, including the aspects of the content, want to be interested in PHP tutorial friends helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.