Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter机器人使用PHP从Mysql数据库发布数据_Php_Mysql_Twitter_Bots - Fatal编程技术网

Twitter机器人使用PHP从Mysql数据库发布数据

Twitter机器人使用PHP从Mysql数据库发布数据,php,mysql,twitter,bots,Php,Mysql,Twitter,Bots,我想做一个twitter机器人,它从mysql数据库发布数据(新闻),只是为了做一个实验 我在互联网和这个网站上搜索了很多地方,但是很多信息不是关于php的,而是使用其他编程语言 这就是为什么我想问一些在twitter机器人、mysql或php方面有经验的人 我的数据库php名为ytable.php,我的列名为Title、Pubdate和Link 这是我目前掌握的常识 require(ytable.php); $consumerKey = 'aa'; $consumerSecret

我想做一个twitter机器人,它从mysql数据库发布数据(新闻),只是为了做一个实验

我在互联网和这个网站上搜索了很多地方,但是很多信息不是关于php的,而是使用其他编程语言

这就是为什么我想问一些在twitter机器人、mysql或php方面有经验的人


我的数据库php名为ytable.php,我的列名为Title、Pubdate和Link

这是我目前掌握的常识

require(ytable.php);
$consumerKey       = 'aa';
$consumerSecret    = 'bb';
$accessToken       = 'cc';
$accessTokenSecret = 'dd';
$oAuth = new TwitterOAuth($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret);
这是我到目前为止所掌握的全部知识。 我想按行从数据库中提取数据,如:

$Twitter = News:$Title Check it out here:$Link $Pubdate;
沿着这些路线的东西

即使你对机器人程序一无所知,你能解释一下如何从mysql数据库/表中提取数据,或者链接一个网站来通知我吗