Php 如何为特定页面/提要创建非常简单的代理
我有一个简单的问题。住在中国,我们无法访问很多社交媒体网站。因此,我想创建一个php文件,它获取被阻止的rss文件的内容,并将其本身作为rss输出 unbuckedserver.com/twittfeed.php?id=23038034Php 如何为特定页面/提要创建非常简单的代理,php,Php,我有一个简单的问题。住在中国,我们无法访问很多社交媒体网站。因此,我想创建一个php文件,它获取被阻止的rss文件的内容,并将其本身作为rss输出 unbuckedserver.com/twittfeed.php?id=23038034 <?php $id = (int)$_GET['id']; $url='http://twitter.com/statuses/user_timeline/'.$id .'.rss'; header("Content-Type: application/
<?php
$id = (int)$_GET['id'];
$url='http://twitter.com/statuses/user_timeline/'.$id .'.rss';
header("Content-Type: application/xml; charset=ISO-8859-1");
$feed = getthecontentfromthe($url);? // what goes here?
echo $feed;
而不是最近的两行。您可能需要使用安全连接(HTTPS)到服务器,以避免基于关键字的过滤。@idealmachine我同意,但我们不试图通过任何政治信息,只是无害的社交媒体营销bla,CCP并不真正反对twitter的这些方面。
readfile($url);