While debugging a PHP get, please
## function tmp($v){
return 10>$v?"0{$v}":$v;
}
$cr=implode(',',array_map('tmp', array_slice(explode(',',$cr),0,20)));
echo '<xml>
<row expect="'.$ct.'" opencode="'.$cr.'" opentime="'.str_replace('/','-',$cd).'"/>
</xml>';[/code ]
Directly open http://kj.kai861.com/view/pk10.html?1?10001?none? Normal
Thanks
The API should be this: http://api.api68.com/pks/getLotteryPksInfo.do?lotCode=10001
I don’t know what you want to get, but file_get_contents( $api ); returns HTML, not JSON, so this json_decode must be wrong.
Is there an easy way to obtain dynamic data generated by JS?