彩票的每一期的开奖数据接口那里用哟??? 搜了一个http://baidu.lehecai.com/api/hao123/new_lottery_all.php 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 写了一个双色球摇奖:<?php/* Created on [2011-11-22] Author[yushuai.niu] */ $redCodes = array(); $blueCodes = array(); for($i=1; $i <= 33; $i++){ $redCodes[$i] = $i; if($i <= 16){ $blueCodes[$i] = $i; } } $redballs = array_rand($redCodes,6); $blueball = array_rand($blueCodes,1); foreach($redballs as $key => $redball){ if($redball < 10){ $redball = "0".$redball; }else{ $redball = $redball; } $reds[] = $redball; } if($blueball < 10){ $blue = "0".$blueball; }else{ $blue = $blueball; }?><html><head><meta http-equiv="Content-Language" content="en" /><meta name="GENERATOR" content="PHPEclipse 1.0" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>double color ball</title></head><body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99"> <h4>double color ball</h4> <table border=1> <tr> <?php if(isset($reds)){ foreach($reds as $red){ echo "<td>{$red}</td>"; } }else{ for($j=1; $j <= 6; $j++){ echo "<td> </td>"; } } if(isset($blue)){ echo "<td style='color:blue;'><b>{$blue}</b></td>"; }else{ echo "<td> </td>"; } ?> </tr> </table> <form action="ticket.php" method="post" enctype="text/plain"> <input type="submit" name="submit" value="get codes"/> </form></body></html> http://data.maicai.cn/kaijiang/您地显得无聊吧 抓就是采集. 接口 是官方的api 才能叫接口。没有api就只能靠自己写采集代码去抓取.. 我也想要。net的接口!能给我发一份么?[email protected] 能不能也发一份接口给我?非常感谢![email protected] [email protected]也发一份我呀。 同求,朋友也给我发一份吧![email protected] 想做概率分析 朋友能给个吗? [email protected] 哥们,给一个吧,[email protected] 彩票控,接口。http://www.caipiaokong.com/open.php 同求,给一个吧,[email protected] 同求彩票接口[email protected] 同求~~找了好久了~~给个吧[email protected] http://www.caipiaokong.com/open/这里有彩票数据API,不过是收费的。 api.opencai.net这里是免费的。 http://www.haoservice.com/docs/33/history{"error_code":0,"reason":"Success","result":[{"LotteryDate":"2014-10-10T00:00:00","LotteryQh":2014275,"LotteryNumber":"8,9,7","LotterySales":"51,509,678"},{"LotteryDate":"2014-10-09T00:00:00","LotteryQh":2014274,"LotteryNumber":"3,6,1","LotterySales":"49,932,960"},{"LotteryDate":"2014-10-08T00:00:00","LotteryQh":2014273,"LotteryNumber":"3,7,0","LotterySales":"48,877,282"},{"LotteryDate":"2014-10-.....01T00:00:00","LotteryQh":2014001,"LotteryNumber":"6,8,7","LotterySales":"50,650,400"}]} http://www.haoservice.com/docs/33彩票查询接口,返回示例: { "reason":"Success", "error_code":0, "result":{ "lottery":"福彩3D", /*彩票类型*/ "lottery_no":"2014054", /*期号*/ "lottery_time":"2014-03-03", /*开奖日期*/ "lottery_nums":"2 5 7 ", /*开奖号码*/ "lottery_sales":"53,297,148" /*本期销量*/ } } php分页问题 求替换 亂碼問題 为什么我的PHP 浏览器直接显示HTML代码 急,php如何接受 html的索引值 100分求助:这样的矩阵怎么输出呢? 使用file函数是不是得装sendmial让自己的服务器支持是不 请告诉我如何安装php-4.4.4-Win32,我的系统是WIN2000SERVER,请指教,谢谢 php安装问题,请高手指点,郁闷中ing ,等待中ing 如何在文件末尾插入数据? 菜鸟急救!SOAP返回的XML怎么获取 PHP URL問題
/* Created on [2011-11-22] Author[yushuai.niu] */ $redCodes = array();
$blueCodes = array();
for($i=1; $i <= 33; $i++){
$redCodes[$i] = $i;
if($i <= 16){
$blueCodes[$i] = $i;
}
}
$redballs = array_rand($redCodes,6);
$blueball = array_rand($blueCodes,1);
foreach($redballs as $key => $redball){
if($redball < 10){
$redball = "0".$redball;
}else{
$redball = $redball;
}
$reds[] = $redball;
}
if($blueball < 10){
$blue = "0".$blueball;
}else{
$blue = $blueball;
}?><html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="PHPEclipse 1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>double color ball</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99"> <h4>double color ball</h4> <table border=1>
<tr>
<?php
if(isset($reds)){
foreach($reds as $red){
echo "<td>{$red}</td>";
}
}else{
for($j=1; $j <= 6; $j++){
echo "<td> </td>";
}
}
if(isset($blue)){
echo "<td style='color:blue;'><b>{$blue}</b></td>";
}else{
echo "<td> </td>";
}
?>
</tr>
</table>
<form action="ticket.php" method="post" enctype="text/plain">
<input type="submit" name="submit" value="get codes"/>
</form></body>
</html>
您地显得无聊吧
[email protected]
也发一份我呀。
[email protected]
[email protected]
这里是免费的。
{"error_code":0,"reason":"Success","result":[{"LotteryDate":"2014-10-10T00:00:00","LotteryQh":2014275,"LotteryNumber":"8,9,7","LotterySales":"51,509,678"},{"LotteryDate":"2014-10-09T00:00:00","LotteryQh":2014274,"LotteryNumber":"3,6,1","LotterySales":"49,932,960"},{"LotteryDate":"2014-10-08T00:00:00","LotteryQh":2014273,"LotteryNumber":"3,7,0","LotterySales":"48,877,282"},{"LotteryDate":"2014-10-
.....
01T00:00:00","LotteryQh":2014001,"LotteryNumber":"6,8,7","LotterySales":"50,650,400"}]}
返回示例: {
"reason":"Success",
"error_code":0,
"result":{
"lottery":"福彩3D", /*彩票类型*/
"lottery_no":"2014054", /*期号*/
"lottery_time":"2014-03-03", /*开奖日期*/
"lottery_nums":"2 5 7 ", /*开奖号码*/
"lottery_sales":"53,297,148" /*本期销量*/
}
}