English 中文(简体)
Facebook链接如何粉碎一页?
原标题:How does Facebook Link tear down a page?
  • 时间:2011-05-08 15:15:05
  •  标签:
  • php
  • facebook

因此,当用户将链接带入面读物状态时,就会发出接听该网页详情的呼吁。

我不禁要问的是,是否有任何类似职能使一页被 apart裂?

在思考这个问题之后,人们只是说一些定期表达。

然后,它通常会得到一系列图像,也很容易以定期表达的方式去除,并可能过滤图像太小。

我不敢说,它是如何说明哪一部分案文是相关的,有什么想法?

最佳回答

值得提及的是,自引入以来,“Opengraph支持,,在使用议定书的平平(scraping)页时,节省了这么多时间和服务器。

Check out the PHP implementation for more info, and here s a small example using one of the libraries (OpenGraphNode in PHP):

include "OpenGraphNode.php";

# Fetch and parse a URL
#
$page = "http://www.rottentomatoes.com/m/oceans_eleven/";
$node = new OpenGraphNode($page);

# Retrieve the title
#
print $node->title . "
";    # like this
print $node->title() . "
";  # or with parentheses

# And obviously the above works for other Open Graph Protocol
# properties like "image", "description", etc. For properties
# that contain a hyphen, you ll need to use underscore instead:
#
print $node->street_address . "
";

# OpenGraphNode uses PHP5 s Iterator feature, so you can
# loop through it like an array.
#
foreach ($node as $key => $value) {
    print "$key => $value
";
}
问题回答

也许看一个诸如

经常表达方式不利于教区,因为教区结构平级。 您将使用DOMDocument课程。

http://www.php.net/manual/en/class.domdocument.php

这将使网页来源变成XML的物体。 你们应当能够清楚了解如何用XPath的询问来比较容易地获得改盘的细节。

您还可能想看一下,在实验室的功能中,“Memeta_tags”。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签