This article mainly introduces the PHP production of XML-based RSS feed function, combined with the example form analysis of RSS feed file generation class definition and use method, the need for friends can refer to the following
The example of this article is about PHP's XML-based
Use php to create an xml-based RSS feed source function example and an xmlrss subscription example
This article describes how to use php to create an xml-based RSS feed. We will share this with you for your reference. The details are as follows:
First, create an RSS template
WordPress Support RSS Feed output, but in the whole station feed source will only output articles (POST), if you add a custom article type, you need to add them to WordPress's whole station feed source. The implementation method is simple, add the following code to the funct
to create a copy of the feed on the local server instead of simply analyzing the most primitive feeds. The reason for this is that the cross-domain restrictions imposed by the XML HTTP request object can be allowed to be bypassed. Later, I'll explain how to create this custom PHP object, but first, let's start with form creation.
Create a form that makes the request
The first thing you need to do is to include the JavaScript and any CSS files you
create a copy of the feed on the local server instead of simply analyzing the original feed. This allows you to bypass the cross-origin restrictions imposed by xml http Request objects. Later, I will explain how to create this custom PHP Object. But first, let's start with form creation.
Create a Request Form
The first thing you need to do is include JavaScript and any CSS files that you may want to use
create a copy of the feed on the local server instead of simply analyzing the original feed. The reason for this is that the cross-domain restrictions imposed by the XML HTTP request object can be allowed to be bypassed. Later, I'll explain how to create this custom PHP object, but first, let's start with the form creation.
Create a form that makes a request
The first thing you need to do is to include
This article introduces the implementation of non-auto-wrapping of div in html. For example, you can use the nobr label to implement non-wrapping and use the nowrap element. If you are interested, refer to section 1. Use
Label implementation without line breaks
The Code is as follows:
Hello world!
Hello world!
2. Use
Tag
The
Recently, I encountered a problem about whether data can be transferred to Textrea for Row-based storage. Here I summarize whether a data transfer to Textrea for Row-based storage, here is a summary:
Problem description:
For example, if you want to get data to a TextArea, such as aaa bbb, and want to store the text in TextArea by row, instead of displaying row-based storage (the so-called real row-based storage means that the data of the TextArea is then post to the Textarea of another page,
For help, solve the problem of wrapping in html tags #183; #183; #183; PHPcode lt ;? Php $ html lt; tbody gt; lt; table gt; lt; inputtype quot; hidden quot; name quot; prt quot; value quot; 1 quot; gt; lt; inpu for help. solve the problem of line breaks in html labels ···
PHP code
'; $
want to check your tag, it is certainly not wrong to contact the colleagues who define how the tag works.Jigsaw.w3.org
W3C also provides a CSS verification tool that can check your labels to identify potential errors and warnings. Similarly, you have some options to set different CSS scenarios (profiles), specify the types of media for creating style sheets, and control the information displayed in the reports.Feedvalidator.org
Feedvalidator first checks whether the
First, URL web site rewrite1, in the MSDNDownloadA file that willActionlessForm.dllAndURLRewriter.dllPut it in the bin directory. This is the address in an article in MSDN about URL rewriting.to perform a URL rewrite in asp.net2, add the following code to the Web.config file3, in IIS will. htmlFile mapping to X:\WINNT\Microsoft.NET\Framework\v1.1.4322\Aspnet_isapi.dll4, the use of methods:Just change the rewrite rules in the web.config.Note that: Look
Ec (2); Content Abstract: RSS aggregation is very popular recently, so at least understanding RSS and its working methods is an urgent need of a PHP developer. This article introduces the basic knowledge of RSS, some usage of RSS for many purposes, How to Use PHP to create RSS
Release date:Updated on:
Affected Systems:Peter Andrews Sage 1.3.10Description:--------------------------------------------------------------------------------Bugtraq id: 49569Cve id: CVE-2011-3384
Mozilla Firefox is a Web browser jointly developed by the Mozilla Foundation and open-source groups. Sage is a Mozilla Firefox plug-in that adds an RSS/Atom feed reader.
Mozilla Firefox has the
The first problem: when using ckeditor to input content, the information stored in the database contains Html tags. When we display the information on the page, we do not want to see tags, we can add two divs to the field of the displayed content.
That is:View Code 1 2 3 @ Model. ViewResultSingle. CONTENT
4 5 6
7
8
This method can be used when only one data entry is displayed on the detailed page is retur
and the RSS feed of the Help net is on the basis of this program to do a little transformation, the main
If an array string is output and the encoding problem is resolved.
The PHP source code and code are explained in detail as follows:
RSS
sites or software that aggregate and categorize RSS feeds).
Because RSS data is small and fast to load, it can be easily used by services like mobile phones or PDAs.
Web sites with similar content (web-rings) can easily share content on their web sites, making them more valuable and worthwhile.
The future of RSS
RSS w
Today I have made some changes to the feed generation code for several major websites.
That's what I have to do. Because I found that the existing Z-blog write tag can never be technorati to get, but others with WordPress write blog tag can be Technorati get, I also manually ping the Technorati, but found also no use, Had to carefully analyze the reasons for it.
I carefully analyzed the WordPress and Z-bl
Let's take a look at the effect:
First, you need an ascx page to bind the content of the RSS source to a listview through an xdocument.CodeAs follows:
Copy code The Code is as follows: protected void page_load (Object sender, eventargs E)
{
// For demo purposes.
System. Threading. thread. Sleep (1000 );
Xdocument feedxml =Xdocument. Load ("http://feeds
and help Easy Net RSS reading is in this program based on a little to do the transformation, the main
If you output an array string and solve the encoding problem.
The PHP source code and code are explained in detail as follows:
An array of RSS source address lists
$rssfeed = Array ("Http://www.jb51.net/
Use PHP and AJAX to create the code for RSS aggregator. Imagine using a simple HTML file to send a request to a server script and receive a custom XML file based on the request, then, it is displayed to the user, and there is almost no need to think about using a simple HTML file to send a request to a server script an
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.