php写星座运势

elseif($Content==‘白羊座’ || $Content==‘金牛座’ || $Content==‘双子座’ || $Content==‘巨蟹座’ || $Content==‘狮子座’ || $Content==‘处女座’ || $Content==‘天秤座’ || $Content==‘天蝎座’ || $Content==‘射手座’ || $Content==‘摩羯座’ || $Content==‘水瓶座’ || $Content==‘双鱼座’){
$star = $Content;
u r l = ′ h t t p : / / w e b . j u h e . c n : 8080 / c o n s t e l l a t i o n / g e t A l l ? c o n s N a m e = ′ . url = 'http://web.juhe.cn:8080/constellation/getAll?consName='. url=http://web.juhe.cn:8080/constellation/getAll?consName=.star.’&type=today&key=c435a21f9ad0f24d2794cc63c4b07059’;
c n = c u r l i n i t ( ) ; c u r l s e t o p t ( cn = curl_init(); curl_setopt( cn=curlinit();curlsetopt(cn,CURLOPT_URL, u r l ) ; c u r l s e t o p t ( url); curl_setopt( url);curlsetopt(cn,CURLOPT_RETURNTRANSFER,TRUE);
curl_setopt($cn,CURLOPT_SSL_VERIFYPEER,TRUE);
s t r = c u r l e x e c ( str = curl_exec( str=curlexec(cn);
curl_close($cn);
o b j = j s o n d e c o d e ( obj = json_decode( obj=jsondecode(str,TRUE);
$Content = $obj[‘summary’];
$xml = ’
<![CDATA[%s]]>
<![CDATA[%s]]>
%s
<![CDATA[text]]>
<![CDATA[%s]]>
';

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值