使用技巧:
如果你买了本站的多款自动生成文章的插件,每个插件生成文章的链接不同,在宝塔后台定时生成的时候,想要一条定时任务随机生成多种文章的话可以把所有的文章生成链接放到一个php文件中,然后访问这个php,实现自动随机调用多个生成文章链接中的一个。
<?php
$urls = array(
'https://www.xxx.com/articleadd/ticheadd/huangliadd/event/tiche/token/kkmp326',
'https://www.xxx.com/articleadd/zhuangxiuadd/huangliadd/event/zhuangxiu/token/kkmp326',
'https://www.xxx.com/articleadd/jiehunadd/huangliadd/event/jiehun/token/kkmp326',
'https://www.xxx.com/articleadd/dongtuadd/huangliadd/event/dongtu/token/kkmp326',
'https://www.xxx.com/articleadd/kaiyeadd/huangliadd/event/kaiye/token/kkmp326',
'https://www.xxx.com/qm/contentadd/xingcontentadd/token/kkmp326',
'https://www.xxx.com/qm/contentadd/zicontentadd/token/kkmp326',
'https://www.xxx.com/articleadd/banjiaadd/huangliadd/event/banjia/token/kkmp326',
'https://www.xxx.com/articleadd/qiaoqianadd/huangliadd/event/qiaoqian/token/kkmp326',
'https://www.xxx.com/articleadd/caishenadd/caishenadd/token/kkmp326',
'https://www.xxx.com/articleadd/dinghunadd/huangliadd/event/dinghun/token/kkmp326',
'https://www.xxx.com/articleadd/anmenadd/huangliadd/event/anmen/token/kkmp326',
'https://www.xxx.com/articleadd/lingzhengadd/huangliadd/event/lingzheng/token/kkmp326',
'https://www.xxx.com/xhauto/xhauto/ai_articles/token/kkmp326/',
'https://www.xxx.com/txtpost/txtpost/txtpost/token/kkmp326'
);
// 随机获取一个URL的键名
$randomKey = array_rand($urls);
// 通过键名获取URL
$randomUrl = $urls[$randomKey];
$response = file_get_contents($randomUrl);
echo $response;
使用方法:
把你的生成文章的链接放到这个php中,比如存储为shengcheng.php,放到网站根目录,然后访问http://www.xxx.com/shengcheng.php,即可随机调用,随机生成!
常见问题FAQ
- 免费下载或者VIP会员专享资源能否直接商用?
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
- 提示下载完但解压或打开不了?
- 找不到素材资源介绍文章里的示例图片?
- 模板不会安装或需要功能定制以及二次开发?
发表评论