上一篇
隔壁老李
我住隔壁我姓李
没用的插件系列,生成JSON格式的的txt数据文件方便站外调用,等zb1.7出来后就真没用了,因为1.7有api了。用法举例:$json=file_get_contents('http://127.0.0.1/zb_users/plugin/Jz5...
没用的插件系列,生成JSON格式的的txt数据文件方便站外调用,等zb1.7出来后就真没用了,因为1.7有api了。
$json=file_get_contents('http://127.0.0.1/zb_users/plugin/Jz52_gbll/laoli.txt'); $json_Array = json_decode($json,true); foreach ($json_Array as $lists) { echo $lists['url'].'<br>'.$lists['img'].'<br>'.$lists['title'].'<br>'.$lists['Intro'].'<br>'; }
本文由隔壁老李于2021-03-18原创发表在智博酷,转载须经本站同意。
本文链接:http://zbp.cool/post/87.html
发表评论