Talking about only core architecture design-php Tutorial

Source: Internet
Author: User
Tags java printf
Recent discussions in the blog Park have been lively and valuable comments have emerged. Sometimes we want to subscribe to the comments RSS of an article. Unfortunately, this function is not available in the blog site. For registered users, you can click the "Subscription reply" link below the comment box to receive an email when a new comment appears. Unfortunately, anonymous users have to constantly refresh before they can focus on what has been discussed recently. But who are we? We are programmers, and this obstacle should be a simple little thing for us. Create a website on your own, get page data, analyze HTML, and lose... recently, the blog community has a heated discussion atmosphere, and valuable comments are also emerging. Sometimes we want to subscribe to the comments RSS of an article. Unfortunately, this function is not available in the blog site. For registered users, you can click the "Subscription reply" link below the comment box to receive an email when a new comment appears. Unfortunately, anonymous users have to constantly refresh before they can focus on what has been discussed recently. But who are we? We are programmers, and this obstacle should be a simple little thing for us. Set up a website on your own, get page data, analyze HTML, and output RSS. that's easy. Old Zhao made a simple example for this, can subscribe to the comments of any article on the http://jeffreyzhao.cnblogs.com. Because it is only a simple personal tool program, we do not consider performance, scalability, scalability, and fault tolerance. we also discard any "best practices" such as unit testing and dependency injection ". In a word, how is it easy. This example consists of two parts. The first part is a static HTML page, which is generated based on the article URL and switched to its RSS link. A few lines of HTML

1. manually generate a code instance for commenting on RSS

Description: the BETWEEN... AND operator determines whether a numeric value is within a specific range. this operator can only be used in SQL statements.

8. PHP output string (echo, print, printf, print_r, var_dump) java printf d printf source code

Description: printf: output string (echo, print, printf, print_r, var_dump) in PHP: There are four methods to output the string. The echo structure can output multiple outputs at a time; print () can only output one; printf () can be converted into output; print_r () can output arrays, which is very beneficial for debugging. 1. echo is a keyword of PHP, and it does not return. In terms of writing, it can omit parentheses. The following code: echo 'test string'; echo ('test string'); 2. print is also a PHP

9. PHP image file Upload implementation code

Introduction: file upload: PHP image file Upload implementation code: for website security, PHP files are certainly not allowed to be uploaded. if someone enters your background, a PHP file is uploaded, your website's source code is all saved to him. you can directly package your code. Therefore, you must control the upload directory and file type. Generally, you can only upload images. It is very useful to create a file upload form that allows users to upload files from the form. See the following HTML form for uploading files: The code is as follows:

10. download the free full version from powerpoint2003 to understand the differences between print EOT and echo EOT in php.

Introduction: powerpoint2003 official download free full version: powerpoint2003 official download free full version php understand the differences between the print EOT delimiter and echo EOT usage summary: echo in html and php can output multiple strings at the same time without parentheses. Print can only output one string at a time, and parentheses are required. The usage of print is similar to that of C language, so it will make a special explanation of % in the output content. Echo has no return value, and print () has a return value. flase is returned when its execution fails (such as disconnection. Echo can have multiple parameters and print one parameter. Echo is recommended.

[Related Q & A recommendations ]:

Javascript-mobiscrol date restrictions. for example, you can select only five days.

Php-yii custom rules, parameter passing

How does python-Flask extract images from articles and display them on the homepage?

Javascript-how to use jquery to monitor changes in the view in real time (the view width is immediately displayed in the input when it changes)

Objective-c-how does Alibaba Wukong's iOS SDK obtain a list of all groups?

The above is a detailed description of the core architecture design. For more information, see other related articles in the first PHP community!

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.