Developing a personal blog--profile in PHP

Source: Internet
Author: User
This article is in the introduction of how to use PHP to implement a blog before the overview, but also for everyone a blog with PHP thinking, here is to learn from the CSDN blog to carry out the article, I hope we can have a harvest.

In fact, CSDN interface can not be customized, using the default types of templates are basically still possible. is to open the time to load a long time, perhaps because the introduction of the resource file is too messy. CSDN's article is more than cnblogs seems to be much faster.

Cnblogs can design its own templates, add CSS and HTML. But the interface needs a lot of work to modify, if not decorated is particularly humble. Cnblogs loading speed is not said, the second open. This is a lot better than csdn.

What are the benefits of developing your own blog? Usually have some small idea, always want to write code run, verify. You can use a blog. For example, the recent study of neural network algorithms, you want to try to do a blog post recommended system. The development of their own mailbox, you can write their own email address in each blog post, so that people who send spam to crawl to verify the development of the mail system spam filtering algorithm effect ...

So what points do you want to pay attention to when writing a blog in PHP?

1, the problem of open speed:

Personal blog Business logic is very simple, nothing more than to send articles, reading articles, editorial classification, comments and so on. The reason to talk about architecture, because the first two days with CSDN are fast card cry. So just want to study the blog site how each page is second open.

First, the page is as static as possible. When the database is large, if every blog opened to check the database read, or read the classification, comments and so on. It's a waste of resources, so you can make the entire page or part of a page static.

Second, the resources within the page use CDN. Simple, but very effective.

Third, a large number of visits, database queries to do cache, do delay updates and so on. such as the reading volume of the article, can save enough 10 times to submit a database update.

Because this blog visit is still small, so for the time being not to consider the above mentioned methods.

2. Blog structure:

Blog large modules to be divided into the background and the front desk, the background of each operation to verify whether to log in, which contains the article, the classification of additions and deletions to check the operation. Front desk is mainly the role of the show. For rapid development, it is common to use some MVC frameworks to rule the development process. We are using thinkphp here. The front-end framework allows you to quickly develop an aesthetically pleasing interface that we use in the BOOTSTRAP,JS framework using jquery.

The above two points is the development of the blog needs a simple overview, if you want to use PHP to complete a blog of their own hope this simple overview can help you, behind we will share the blog actual combat tutorial to everyone, we can pay attention to topic.alibabacloud.com.

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.