国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home php教程 php手冊(cè) 如何用PHP把RDF內(nèi)容插入Web站點(diǎn)之中(一)

如何用PHP把RDF內(nèi)容插入Web站點(diǎn)之中(一)

Jun 21, 2016 am 09:13 AM
gt lt quot

web|插入|站點(diǎn)

名譽(yù)和巨大的財(cái)富

設(shè)想一個(gè)從最熱門的門戶網(wǎng)站獲得最新的新聞的站點(diǎn)。股票價(jià)格,天氣信息,新聞故事,線式討論組,軟件發(fā)布……所有這一切都將被動(dòng)態(tài)更新,每小時(shí)一次,不需要任何手工干預(yù)。我們可以想象這隨之而來的站點(diǎn)訪問量,源源不斷的廣告收入以及網(wǎng)管大人所受到的“阿諛奉承”。

但是現(xiàn)在,停止幻想,開始閱讀,因?yàn)橹灰忝芮嘘P(guān)注此項(xiàng)技術(shù),說不定你就能成為站點(diǎn)的主人。 對(duì)你的要求也只是稍許的想象力,一些聰明的PHP編碼和幾個(gè)免費(fèi)的RSS文件。另外,很明顯還包括這篇文章剩下的九個(gè)部分。



有內(nèi)容,就聯(lián)合成辛迪加(Have Content, Will Syndicate)
我們從最基本的開始——那么RSS究竟是什么鬼東西呢?

RSS(即RDF Site Summary)是一種格式,最早由Netscape公司設(shè)計(jì),用于分發(fā)其門戶站點(diǎn)My.Netscape.Com上的內(nèi)容的描述信息。自1997年被提出以來,幾經(jīng)沉浮——可以點(diǎn)擊文章末尾的鏈接,了解一下RSS悠久復(fù)雜的歷史?,F(xiàn)在的穩(wěn)定的版本是RSS1.0,符合RDF規(guī)范。這一版本可以說即輕便又功能齊全。

RSS使得網(wǎng)管及時(shí)公布和分發(fā)某一特定站點(diǎn)的特定位置的最新最有趣的內(nèi)容的描述信息變的可能。 從新聞文章列表到股票市場(chǎng)數(shù)據(jù)或著是天氣預(yù)報(bào),所有這些信息都可以通過結(jié)構(gòu)良好的XML文檔來發(fā)布,從而也可以被任何XML分析器進(jìn)行分析,處理和翻譯。

網(wǎng)站上最新信息的列表是經(jīng)常更新的,而RSS使得這一列表的分發(fā)成為可能,也就為Web上簡(jiǎn)易的內(nèi)容辛迪加聯(lián)合打開了大門。想了解這其中的道理,請(qǐng)看下面這個(gè)簡(jiǎn)單的例子:

站點(diǎn)A,屬新聞?wù)军c(diǎn)(“內(nèi)容辛迪加組織者”),能夠每小時(shí)發(fā)布一個(gè)包含最新新聞列表以及相應(yīng)鏈接的RSS文檔。 而這一RSS文檔可以被其它站點(diǎn)獲?。ㄈ缯军c(diǎn)B,“內(nèi)容收集者”),分析并顯示在站點(diǎn)B的索引頁面上。 每次站點(diǎn)A發(fā)布一個(gè)新的RSS文檔,站點(diǎn)B的索引頁面都可以自動(dòng)更新,以獲取最新的新聞。

這種方案對(duì)交易中的雙方機(jī)構(gòu)都有效。 既然RSS文檔中的鏈接都指向站點(diǎn)A上相應(yīng)的文章,那么站點(diǎn)A將迅速體驗(yàn)到訪問量的增加。 而站點(diǎn)B的網(wǎng)管可以休假一個(gè)星期,因?yàn)樗修k法自動(dòng)更新其站點(diǎn)上的索引頁面,而這一方法僅僅是把索引頁面與站點(diǎn)A發(fā)布的動(dòng)態(tài)內(nèi)容相連接而已。

有許多受歡迎的站點(diǎn)向公眾提供詳細(xì)的RSS或RDF新聞,如Freshmeat(http://www.freshmeat.net)和Slashdot(http://www.slashdot.org),當(dāng)然還有其它許多站點(diǎn)。在這篇文章當(dāng)中,我將廣泛的使用Freshmeat網(wǎng)站的RDF文件。需要說明的一點(diǎn)是,這里所談到的技術(shù)也可以應(yīng)用于其它任何RSS1.0或RDF文件。



交換頻道(Switching Channels)

典型的RSS文檔包含一個(gè)由描述性元數(shù)據(jù)標(biāo)記出來的資源列表(URLs),請(qǐng)看下面的例子:

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1502
276
What are the differences between Huawei GT3 Pro and GT4? What are the differences between Huawei GT3 Pro and GT4? Dec 29, 2023 pm 02:27 PM

Many users will choose the Huawei brand when choosing smart watches. Among them, Huawei GT3pro and GT4 are very popular choices. Many users are curious about the difference between Huawei GT3pro and GT4. Let’s introduce the two to you. . What are the differences between Huawei GT3pro and GT4? 1. Appearance GT4: 46mm and 41mm, the material is glass mirror + stainless steel body + high-resolution fiber back shell. GT3pro: 46.6mm and 42.9mm, the material is sapphire glass + titanium body/ceramic body + ceramic back shell 2. Healthy GT4: Using the latest Huawei Truseen5.5+ algorithm, the results will be more accurate. GT3pro: Added ECG electrocardiogram and blood vessel and safety

Fix: Snipping tool not working in Windows 11 Fix: Snipping tool not working in Windows 11 Aug 24, 2023 am 09:48 AM

Why Snipping Tool Not Working on Windows 11 Understanding the root cause of the problem can help find the right solution. Here are the top reasons why the Snipping Tool might not be working properly: Focus Assistant is On: This prevents the Snipping Tool from opening. Corrupted application: If the snipping tool crashes on launch, it might be corrupted. Outdated graphics drivers: Incompatible drivers may interfere with the snipping tool. Interference from other applications: Other running applications may conflict with the Snipping Tool. Certificate has expired: An error during the upgrade process may cause this issu simple solution. These are suitable for most users and do not require any special technical knowledge. 1. Update Windows and Microsoft Store apps

How to Fix Can't Connect to App Store Error on iPhone How to Fix Can't Connect to App Store Error on iPhone Jul 29, 2023 am 08:22 AM

Part 1: Initial Troubleshooting Steps Checking Apple’s System Status: Before delving into complex solutions, let’s start with the basics. The problem may not lie with your device; Apple's servers may be down. Visit Apple's System Status page to see if the AppStore is working properly. If there's a problem, all you can do is wait for Apple to fix it. Check your internet connection: Make sure you have a stable internet connection as the "Unable to connect to AppStore" issue can sometimes be attributed to a poor connection. Try switching between Wi-Fi and mobile data or resetting network settings (General > Reset > Reset Network Settings > Settings). Update your iOS version:

php提交表單通過后,彈出的對(duì)話框怎樣在當(dāng)前頁彈出,該如何解決 php提交表單通過后,彈出的對(duì)話框怎樣在當(dāng)前頁彈出,該如何解決 Jun 13, 2016 am 10:23 AM

php提交表單通過后,彈出的對(duì)話框怎樣在當(dāng)前頁彈出php提交表單通過后,彈出的對(duì)話框怎樣在當(dāng)前頁彈出而不是在空白頁彈出?想實(shí)現(xiàn)這樣的效果:而不是空白頁彈出:------解決方案--------------------如果你的驗(yàn)證用PHP在后端,那么就用Ajax;僅供參考:HTML code

How to optimize iPad battery life with iPadOS 17.4 How to optimize iPad battery life with iPadOS 17.4 Mar 21, 2024 pm 10:31 PM

How to Optimize iPad Battery Life with iPadOS 17.4 Extending battery life is key to the mobile device experience, and the iPad is a good example. If you feel like your iPad's battery is draining too quickly, don't worry, there are a number of tricks and tweaks in iPadOS 17.4 that can significantly extend the run time of your device. The goal of this in-depth guide is not just to provide information, but to change the way you use your iPad, enhance your overall battery management, and ensure you can rely on your device for longer without having to charge it. By adopting the practices outlined here, you take a step toward more efficient and mindful use of technology that is tailored to your individual needs and usage patterns. Identify major energy consumers

Is watch4pro better or gt? Is watch4pro better or gt? Sep 26, 2023 pm 02:45 PM

Watch4pro and gt each have different features and applicable scenarios. If you focus on comprehensive functions, high performance and stylish appearance, and are willing to bear a higher price, then Watch 4 Pro may be more suitable. If you don’t have high functional requirements and pay more attention to battery life and reasonable price, then the GT series may be more suitable. The final choice should be decided based on personal needs, budget and preferences. It is recommended to carefully consider your own needs before purchasing and refer to the reviews and comparisons of various products to make a more informed choice.

請(qǐng)教怎么修改url某一參數(shù)的參數(shù)值呢?是要拆開了再拼回去嗎 請(qǐng)教怎么修改url某一參數(shù)的參數(shù)值呢?是要拆開了再拼回去嗎 Jun 13, 2016 am 10:24 AM

請(qǐng)問如何修改url某一參數(shù)的參數(shù)值呢?是要拆開了再拼回去嗎?那么請(qǐng)問如何修改url某一參數(shù)的參數(shù)值呢?是要拆開了再拼回去嗎?http://127.0.0.1/myo/newuser.php?mod=search&type=fastone比如現(xiàn)在我要修改mod=new要怎么做呢?------解決方案--------------------發(fā)送了請(qǐng)求

Microsoft is rolling out Windows 11 23H2 build to the release preview channel with Copilot Microsoft is rolling out Windows 11 23H2 build to the release preview channel with Copilot Sep 28, 2023 pm 07:17 PM

Everyone is looking forward to today's Windows 1123H2 release. In fact, Microsoft has just launched updates to the release preview, which is the closest channel before the official release stage. Known as Build 22631, Microsoft said they are rolling out the new rebranded chat app, phone link, and play together widgets that have been tested on other internal channels over the past few months. "This new update will have the same servicing branch and codebase as Windows 11 version 22H2 and will be cumulative with all newly announced features, including Copilot in Windows (preview)," Microsoft promises. Redmond officials further

See all articles