The entire process of PHP development website Technology knowledge sharing

Source: Internet
Author: User
Keywords PHP web Development

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

The first thing I need to say is that we are not only using PHP to develop a complete Web site program, but that the language used on the server side is PHP.

Roughly speaking, we are working on a complete web site to use the technical knowledge.

First of all, we must have a html,css and JavaScript, you can also according to your needs to add some of the appropriate flash, but I think this is not necessary. After all, a website Flash animation and so on a lot of words will slow down the download speed of your webpage, understandable users will not wait for your Web page all downloaded, but choose to leave, so I do not recommend too much flash. But there are some portals that will have to be mentioned separately.

HTML knowledge is a necessary knowledge of each website designer, it is not difficult to learn, in addition to some tags, tag attributes and label values, there is no technical content, so try to be familiar with these tags in a short time is necessary.

CSS is used in almost every site today, to beautify our web pages, very powerful. I think it's the same as HTML, which sets the value for the HTML tag's properties.

JavaScript is important to the foreground, and many students say JavaScript is simple, but I don't think so. JavaScript is also a mature program language, I think it is not easier than PHP, on the contrary, more difficult than PHP,

At the front desk we learn almost, we must start to understand the background, Web Development server PHP is very stable, learning is easy to use. There is no PHP, we need to use the database, where we choose MySQL, software small, fast installation, I have been using this. Oh, wrote here some netizens may say that I am irrelevant? In fact, we need to know a complete Web site development process, then we have to understand the development of this site we need to have the technical knowledge, I think is very necessary. Below we go to the point of developing a website website steps:

The first step: Database design

Some people will say that the first step should be demand analysis! Oh, I think the database design must be done by the needs analysis. So how do we design our database? First, you have a general idea of your entire site's needs, such as which table in the database to store the data in the site. For example: We can use the site's configuration information, such as the site name, contact QQ, website address, website record information, etc. stored in the database table Webconfig this datasheet. When we are at the front of the site such as the title to display the site name, the site at the bottom of the contact address, and so on, as long as the information from the database out to put these positions on the OK! Database design When you want to know how many tables will be used in the Web site, the data table needs which fields, the length of the field, Whether it is a primary key and whether it is allowed to be null. It all needs to be done before coding.

Step Two: Start coding

After our database has been designed, we can start to write the Web site program, PHP script server-side scripts I suggest you use PHP template Smarty to write, Smarty can do the foreground and backstage separation. That is, in a team familiar with the design of the Web page, you can design all the pages of the site, which does not contain any PHP code. And familiar with PHP we can write our PHP script alone. This division of Division is highly efficient, and most companies use this model to develop programs. As to which development model you want to use, you can also write according to your own habits or hobbies. What is now prevalent is the MVC pattern, which is the model-view-controller model. This pattern is appropriate if you are familiar with OOP ideas. Developed the program efficiency is high, as to what is the MVC pattern, the previous article I have mentioned, unfamiliar can go to see.

Step three: Debug

When our website program is written well, the final step is to debug our program. If it's a single person doing the whole site, this step may not be necessary, because you are in the development of the site is written on the side of the program debugging. But in a team this is essential. The process of debugging is to discover the process of procedural problems, to be very careful to do this work.

Finally, the site is published.

It is estimated that for individuals, publishing a website is a very exciting time! But please note that the Web site is not representative of the site is no problem, perfect. In fact, the Web site after the user's use of the process it is also a site debugging process. You're like a lot of game publishers release The game is the first release of the beta version of it! That's what it means to find problems and solve them in the process of user use, which is worth doing.

To conclude, this article may not be very detailed to tell you how to use PHP to write a complete Web site. But it's also a framework to build a shelf before you start writing a complete website. Hope that the whole station building confused netizens have a little inspiration. Later I will write a detailed knowledge of PHP programming.

Original Author: Love program net original link: http://www.aichengxu.com/article/PHP/23_1.html

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.