phpµ÷ÓÃwebserviceµÄÎÊÌ⣡ - PHP / »ù´¡±à³Ì
ÎÒÃǹ«Ë¾Óиöwebservice ÒªÓÃphp µ÷Óà print_r( $client->__getFunctions ()); Õâ¸ö·½·¨ ÏÔʾµÄÊÇArray ( [0] => SendListenResponse SendListen(SendListen $parameters) [1] => SendListenResponse SendListen(SendListen $parameters) ) print_r($client->__getTypes () ); Õâ¸ö·½·¨ ÏÔʾµÄ ÊÇ Array ( [0] => struct SendListen { base64Binary BytecmdName; base64Binary ByteValue; } [1] => struct SendListenResponse { base64Binary SendListenResult; } [2] => string StringArray[] ) ÎÒÔõôдÓï¾ä°¡£¿£¿£¿ ÎÒдµÄÊÇ $client = new SoapClient('htt/127.0.0.1/Service.asmx?wsdl');//û·¨·¢Á´½Ó ËùÒÔÖ»ÄÜÕâÑù $para = array('BytecmdName'=> $arr11,'ByteValue'=> $arr22); //arr11,arr22 ¶¼ÊÇÕýÈ·µÄÖµ //$res =array(); $res = $client->__Call('SendListen',array('parameters'=>$para))->SendListenResult; Ôõô·µ»ØµÄ$resÊÇ´íÎóµÄ°¡£¿ Çó°ï棡£¡£¡
ʲô´íÎó£¿ //·µ»ØµÄÊÇÂÒÂë ÎÒ¾õµÃÊÇ ÊäÈë´íÎó µ«ÊÇÊäÈëÃ÷ÏÔÕýÈ· ËùÒÔ Çë´ó¼Ò¿´¿´ÎÒ³ÌÐòÓÐʲôÎÊÌâ base64Binary ×¢Òâ²ÎÊýÀàÐÍ »¹Óзµ»ØÖµµÄÀàÐÍ ²ÎÊýÀàÐÍÕýÈ·ÁË ÎÒÃÇͬÊÂÓÃc# д byte[]a = (byte[]) base.Invoke("SendListen", new object[] { BytecmdName, ByteValue })[0]; ¶¼ÄÜÕýÈ·µÃµ½µÄ ûÈË°ïÎÒÂð Ìù³ö·µ»ØµÄÄÚÈÝÒýÓà Ìù³ö·µ»ØµÄÄÚÈÝ ·µ»ØµÄÊÇ 10
Ïà¹ØÎÊ´ð£º
Ä¿Ç°ÔÚÎ人ÕÒ¹¤×÷ ·¢Ïִ󲿷ֹ«Ë¾ÎÞÍâºõÁ½ÖÖ Ò»ÖÖÊǸãÍâ°üµÄ ÒªÓÃzend,cakephpµÈÍâ¹ú¿ò¼Ü »¹ÒªÊìϤÍâ¹ú¿ªÔ´ÏµÍ³ Ò»ÖÖ¹úÄÚµÄ ÎÞÍâºõ dedecms ecshop shopexÕ⼸ÖÖ¸ÄÕ¾µã ÓеĹ«Ë¾ÉõÖÁÄÃһЩ¸üСµÄϵͳ¸ ......
1¡¢ÊDz»ÊÇPHPÖÐÖ»ÄÜʹÓÃmysql_query("update user_aa set money=money2-".$bpanmm." where uid=".$userppp);¸üÐÂÊý¾Ý£¿£¿£¿ 2¡¢PHP¸üÐÂmysql_fetch_row($res)Óëmysql_fetch_array($res)ÖеÄÊý¾ ......
PHPÖÐ ÉùÃ÷±äÁ¿µÄʱºòÒ»¸ö$¸úÁ½¸ö$µÄÇø±ð ±ÈÈç˵ $var="333"; ±íʾ±äÁ¿ÃûΪ$varµÄ±äÁ¿µÄֵΪ333 $var="myvar";$$var="333";±íʾ±äÁ¿ÃûΪ$myvarµÄ±äÁ¿µÄֵΪ333 ÕâÑù˵Çå³þÁËÂð£¿
......
ÔÚPHPÖÐÓÐûÓÐÏñASPÖеļǼ¼¯(ADODB.Recordset )ÕâÖÖÀàÐ͵ĶÔÏó?¿É²»¿ÉÒÔÏñÔÚASPÖÐÒ»Ñùͨ¹ý¼Ç¼¼¯À´¸üÐÂÊý¾Ý¿â.ÈçÏÂÃæÕâÑù. VBScript code: set rs=server.createobject("adodb.recordset") ......
ÏÖÔÚÓÐa,bÈý¸öÒ³Ãæ bÊǵǽҳÃ棬·ÃÎÊaÒ³Ã棬Èç¹ûûÓеǼ£¬Ôòheaderµ½bÒ³Ãæ ÔÚbÒ³ÃæÈ¡²»µ½HTTP_REFERER òËÆHTTP_REFERERÖ»ÄÜÈ¡µ½a±êÇ©ºÍpost,get·½·¨µÄÌøת Äܲ»ÄÜαÔìÒ»¸öHTTP_REFERER£¬È»ºó¹ýÈ¥£¿ ¼ÈÈ»Ö ......