必应搜索每日背景图API
(.+?)<\/url>/ies",$str,$matches)){ $imgurl='http://cn.bing.com'.$matches[1]; }else{ $imgurl='https://xiaoerhucom.oss-cn-hangzhou.aliyuncs.com/bg/bg_page_reg.png'; } header("Location: $imgurl"); ?>
使用方法:
将上面的代码,保存到 index.php 文件
上传支持PHP文件解析的空间或者服务器
直接访问:http://域名/index.php 就可以看到图片的链接啦
本站登录注册页面就是调用的此API