我這個怎么總是說返回數(shù)據(jù)失敗呢?
下面是代碼:
<?php
??error_reporting(0);
?$sig=$_GET["signature"];
?$timesta=$_GET["timestamp"];
?$non=$_GET['nonce'];
?$tok="shiyake";
?$arr=array($tok,$timesta,$non);
?//print_r( $arr);
?sort($arr);
?$tmp=implode('',$arr);
?//echo $tmp;
?$tmp=sha1($tmp);
?//echo $tmp;
?if ($tmp==$sig) {
??echo $_GET['echostr'];
??exit;
?
?}
哪里有問題呢?是網(wǎng)站不適合么?
2015-08-24
看了下代碼,沒什么問題,可以不用error_reporting,另外建議查看是否“開啟配置”,開啟配置之后才能去配置服務(wù)器url,不然即使你的代碼對了,死活配置不成功!先看一下 有問題再留言哈
2015-09-20
先修改配置,再啟用。。。
2015-08-24
是這個啟用么?
沒有配置,起用不了啊,
現(xiàn)在又配置不了,
你看,我自己實驗,是可以的
能返回? echostr