windowsÏÂphpÖÐSOAPµÄÅäÖÃ
ÔÚwindowsϵÄphp.iniÎļþÀï
ÕÒµ½ÕâÒ»ÐдúÂ루ÈçûÓÐÔò×ÔÐÐÌí¼Ó£©
extension=php_soap.dll
SOAPÔÚphp.iniÖл¹ÓÐ×Ô¼ºµÄÅäÖò¿·Ö£¬ÈçÏÂËùʾ
[soap]
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400
Õâ¶ÎÅäÖÿØÖÆÁËSOAPÀ©Õ¹µÄWSDL»º´æÌØÐÔ¡£Ä¬ÈÏÇé¿öÏ£¬WSDLÃèÊöÎļþÔÚ24Сʱ(86400sec)ÄÚ¶¼ÔÚ»º´æÉèÖõÄĿ¼Ï¡£
ÁíÍ⻹ÐèÒªÐÞ¸ÄһϴúÂë¶Î£¬½«always_populate_raw_post_dataÉèÖÃΪOn£¬²¢È¥µô·ÖºÅ£¬±íʾÔÊÐíÈ¥µÄû¾¸ñʽ»¯µÄPOSTÊý¾Ý¡£
; Always populate the $HTTP_RAW_POST_DATA variable.
always_populate_raw_post_data = On
È»ºóÕÒµ½ÈçÏ´úÂ룬ÉèÖÃΪ0
soap.wsdl_cache_enabled=0
ÕâÑù£¬ÔÚ´úÂëµ÷ÊÔʱ£¬±ÜÃâÓöµ½Ò»Ð©ÄªÃûÆäÃîµÄ´íÎó£¬Íê³Éweb·þÎñ¿ª·¢Ö®ºó£¬Òª¼ÇµÃ¸ÄΪ1£¬¼´´ò¿ªWSDL»º´æ£¬Ê¹´úÂëÔËÐеøü¿ì¡£
ΪÁËÖ¤Ã÷Äã³É¹¦ÅäÖúÃSOAP,ÇëʹÓÃphpinfo()º¯ÊýÈ·ÈÏÏ£º
Ïà¹ØÎĵµ£º
$str=preg_replace("/\s+/", " ", $str); //¹ýÂ˶àÓà»Ø³µ
$str=preg_replace("/<[ ]+/si","<",$str); //¹ýÂË<__("<"ºÅºóÃæ´ø¿Õ¸ñ)
$str=preg_replace("/<\!--.*?-->/si","",$str); //×¢ÊÍ
$str=preg_replace("/<(\!.*?)>/si","",$s ......
¸ù¾ÝÄãµÄʹÓÃÄ¿µÄÎÒ¾õµÃÕâ¸öº¯ÊýÓÐÁ½·½ÃæµÄÓÃ;£º
·ÀÖ¹SQL Injection¹¥»÷£¬Ò²¾ÍÊÇÄã±ØÐëÑéÖ¤Óû§µÄÊäÈë
²Ù×÷Êý¾ÝµÄʱºò±ÜÃâ²»±ØÒªµÄ×Ö·ûµ¼Ö´íÎó
mysql_real_escape_string() º¯ÊýתÒå SQL Óï¾äÖÐʹÓõÄ×Ö·û´®ÖеÄÌØÊâ×Ö·û¡£
ÏÂÁÐ×Ö·ûÊÜÓ°Ï죺
\x00
\n
\r
\
'
"
\x1a
Èç¹û³É¹¦£¬Ôò¸Ãº¯Êý·µ»Ø±»×ªÒåµÄ×Ö·û´ ......
»ù±¾µÄ PHP Óï·¨
PHP µÄ½Å±¾¿éÒÔ <?php ¿ªÊ¼£¬ÒÔ ?> ½áÊø¡£Äú¿ÉÒÔ°Ñ PHP µÄ½Å±¾¿é·ÅÖÃÔÚÎĵµÖеÄÈκÎλÖá£
µ±È»£¬ÔÚÖ§³Ö¼òдµÄ·þÎñÆ÷ÉÏ£¬Äú¿ÉÒÔʹÓà <? ºÍ ?> À´¿ªÊ¼ºÍ½áÊø½Å±¾¿é¡£
²»¹ý£¬ÎªÁË´ïµ½×îºÃµÄ¼æÈÝÐÔ£¬ÎÒÃÇÍÆ¼öÄúʹÓñê×¼ÐÎʽ (<?php)£¬¶ø²»ÊǼòдÐÎʽ¡£
<?php
?>
PHP Îļþͨ³£»á°ü ......
ÔËËã·ûÓÃÓÚ¶ÔÖµ½øÐÐÔËËã.
PHP ÔËËã·û
±¾²¿·ÖÁгöÁËÔÚ PHP ÖÐʹÓõĸ÷ÖÖÔËËã·û£º
ËãÊýÔËËã·û
ÔËËã·û˵Ã÷Àý×Ó½á¹û
+
Addition
x=2
x+2
4
-
Subtraction
x=2
5-x
3
*
Multiplication
x=4
x*5
20
/
Division
15/5
5/2
3
2.5
%
Modulus (division remainder)
5%2
10%8
10%2
1
2
0
++
Incre ......