如何从其他站点的源代码中获取信息?

时间:2010-12-04 06:53:25

标签: html copy

有没有办法将其他网站的源代码直接从您的网站中删除?

例如,假设存在以下源代码:

<table ...>
            <tr>
              <td class=...>...</div></td>
            </tr>
            <tr>
              <td class=....><div align="... class=...>"Interesting string that keeps changing"</div></td>
            </tr>
          </table>

我们希望不断变化的有趣字符串也出现在我们的网站上。

1 个答案:

答案 0 :(得分:1)

你可以使用php

你使用

$ html = file_get_contents('url to website');

或使用隐藏,如果你想要一个javascript函数,然后只需抓住innerhtml

相关问题