php+ Sina Weibo open platform + Sina Cloud Platform (SAE) to develop micro-blogging application Foundation

Source: Internet
Author: User

1, Sina Weibo open platform (Http://open.weibo.com/wiki/index.php/Quickstart)
What is open: open platform open to developers is the user relationship of each user, the developer is not to the traditional application as the face of a single developer, but face the entire circle of friends behind the user. Each API is about communicating with friends and friends to provide relevant features such as sending tweets, viewing friends ' profiles, and more.
Why use an open platform? An open platform can accelerate application promotion. Each user can affect the surrounding friends, once the application is really good, users can easily recommend to friends, friends can then recommend to his friends. Open platforms make user relationships easier to get. When the application involves the user communication, need to have a certain user group and the user's relationship chain, and the establishment of such a number of users of the relationship chain requires a lot of time and effort. Weibo through the grassroots and grassroots, grassroots and star, star and star of mutual concern, formed a huge social network, applications can directly through the open platform to use the network.
Yun Ding Casino
2, Sina Cloud Platform (Sina appengine,sae)
Sina App Engine (SAE) was developed in-house by the Sina Research and Development Center in August 2009 and launched its first alpha version of the country's first public cloud computing platform on November 3, 2009 (http:// sae.sina.com.cn), SAE is a core part of Sina's cloud computing strategy.
As the domestic public cloud computing, SAE draws on the successful technical experience of absorbing public cloud computing from foreign companies such as Google and Amazon, and quickly launches a cloud computing platform that is different from theirs. SAE chooses the most popular web development language in the country PHP as the preferred support language, Web developers can be on the linux/mac/windows through the SVN, SDK or Web version of the online Code Editor for development, deployment, debugging, team development can also be member collaboration, Different roles will have different permissions on the code, the project, and the SAE provides a range of distributed computing and storage services for developers to use, including Distributed file storage, distributed database clustering, distributed caching, distributed timing services, and so on, which greatly reduces developer costs. At the same time, thanks to the high reliability of the SAE overall architecture and the brand guarantee of SINA, the operational risk of the developers is greatly reduced. In addition, as a typical cloud computing, the SAE uses the "pay-as-you-pay-only" billing concept to accurately calculate the resource consumption (including CPU, memory, disk, etc.) for each application through the log and Statistics Center.
In short, SAE is a simple and efficient distributed Web services development, running platform.
See more http://sae.sina.com.cn/?m=devcenter&catId=19.

3, Sina Cloud Platform (Sina appengine,sae) and Sina Weibo open platform relationship
After the successful development of the microblog application, you need to deploy the code to the Web before you can use it. In other words, Weibo application development is written by invoking the API completion program in the Sina Weibo open platform, andThese programs are uploaded to SAE and run on the SAE.
During the development process, you can build a Web server to run the program locally, or you can choose to perform traditional service hosting. However, these two scenarios require a lot of cumbersome configuration.
Deploying the code directly into the SAE in development, without any configuration, and even more services that might be used in the future are already ready for you by SAE, we can go straight to the topic —— develop a microblog app.
It is also important that the SAE is free (at least as a resource to be used in personal learning).
When you are familiar with the SAE, you will learn more about "cloud services".

4. Why use PHP to develop micro-blogging applications
The Sina Weibo open development platform provides support for multiple languages and platforms such as Java, Php,flash,python,javascript,android and iOS, enabling applications on the Web, as well as developing applications on mobile devices. Developers are free to choose quite a lot.
You may not want to use PHP to develop the goals of your microblog application, and you don't even have the idea of learning PHP. If so, read this booklet and try to use PHP to make the app, just as a learning process. In this process, you will learn about the general process and the many concepts of a poorly understood experience.
If you are going to learn to use PHP development, more congratulations, we start together. In fact, learn this trick and find a lot of job opportunities.
Most crucially, the SAE programming language is PHP. In order to get a quick start on Weibo development, it is necessary to use PHP first.

5. Basic knowledge
Need to know C/s structure and b/s structure.
You need to know the client script and the server side script.
Students over a freshman should all know.
Need to have a Weibo account. It should not be possible to develop micro-blogging applications without playing Weibo. It's better to make a good application by liking Weibo first, so you have a great sense of accomplishment. The ideas that appear in the play will keep you learning with problems.
As for PHP, you need to know its general syntax. If you've had other language programming experiences, like me, spend half the morning flipping through a textbook. If you do not understand in the following program, then read the book to understand the line. It would be better if we had more preparation ahead of time.

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.