php×Ö·ûת»»µÄÎÊÌâ - PHP / »ù´¡±à³Ì
str_replace¿ÉÒÔÌæ»»Ò»¸ö¹Ø¼ü×Ö£¬Èç¹ûÏë·Ö±ðÌæ»»¶à¸ö¹Ø¼ü×Ö£¨ÀýÈçÔÚÒ»¸ö×Ö·û´®ÖУ¬°ÑaÌæ»»b£¬°ÑcÌæ»»d£©£¬³ýÁËÑ»·str_replaceÖ®Í⣬»¹ÓÐûÓиüÓÐЧµÄ·½·¨ÄØ£¬×îºÃÊÇÒ»¸öº¯Êý»òÕßÊÇÒ»¸öÕýÔòÌæ»»µÄ£¿
ûÓÐʲô ¸üÓÐЧÁË ÖØ¸´Ê¹ÓÃËüstr_replace() ÀýÈ磺
function safe_replace($string)
{
$string = str_replace('*','',$string);
$string = str_replace('"','"',$string);
$string = str_replace("'",'',$string);
...............
return $string;
}
Äãµ÷ÓÃÕâ¸öº¯Êý ¾ÍOKÁË
Ŀǰ´ó²¿·ÖµÄÍøÕ¾ Ò²¾ÍÊÇÕâÑùдµÄ
¶î...Èç¹ûÓÐN¸ö¹Ø¼ü×ÖÒªÌæ»»µÄ£¬ÄDz»ÊÇÒªµ÷ÓÃN´Ëstr_replace£¬ÎÒ¾õµÃÕâ¸öºÜûЧÂʲÅÉÏÀ´ÎÊÏÂÓÐʲôºÃµÄ·½·¨µÄ£¬³ýÁËһ¥µÄ¾Íû±ðµÄ·½·¨ÁË£¿
ÎÒ¾õµÃһ¥µÄ±È½ÏÓÐЧÂÊÒ»µã
str_replaceµÄ²ÎÊýÊÇ¿ÉÒÔÊÇÊý×éµÄ¡£±ÈÈ磺
str_replace(array("a","b"),'x',$s); //°ÑaºÍb¶¼Ìæ»»³Éx
str_replace(array('a','b'),array('x','y'),$s); //°ÑaÌæ»»³Éx£¬°ÑbÌæ»»³Éy
Äã¸úÎÒ·¢Ò»Ñù¸Éʲô£¿
Ïà¹ØÎÊ´ð£º
ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......
Çë½Ì¸ßÊÖ°ïæ£¬session_start£¨£©·ÅÔÚÍⲿµÄÎļþÓà require »ò include °üº¬½øÀ´£¬ÇëÎÊÕâÑù×öºÏÀíÂ𣿣¿´úÂëÔËÐÐÊÇÕý³£µÄ£¬ÕâÑù×öºÏÀíÂ𣿣¿Çë¸ßÊÖÖ¸µã¡£¡£¡£¡£ лл····
require »ò include ......
PHPÔõôÑù½«µÚÒ»¸ö±íµ¥µÄÖµ´«µ½µÚ¶þ¸ö±íµ¥
ûÓöµ½¹ý£¬°ï¶¥ÏÂ
ͨ¹ýcookie»òͨ¹ýphpÒ³Ãæ¸³Öµ
µÚÒ»¸ö±íµ¥Ìá½»µ½php£¬php»ñÈ¡ÔÙ´«µ½µÚ¶þ¸ö±íµ¥ÖÐ
ÓÃjs°É
»ñȡֵÔÚ·â×°±íµ¥¡£²»ÖªµÀÄãµÄÐèÇóÊÇÔõÑùµÄ
ÓÃjQ ......
ÍøÉϺöà¶þ¼¶Áª¶¯µÄ£¬Ö»ÊǶ¼Ã»ÓвÉÓÃAccessÊý¾Ý¿âµÄ£¬php²»ÊìϤ£¬ÓÐÁ½¸öÊý¾Ý±í·Ö±ðΪlb(Àà±ð£º±àºÅ£¬Àà±ðÃû³Æ£©into_product(²úÆ·¹ÜÀí£ºid,Ãû³Æ£¬Àà±ðµÈ×ֶΣ©
ÏëҪʵÏÖ£ºµÚÒ»¸öÏÂÀ²Ëµ¥Ñ¡ÔñÍêÀà±ðºó£¬µÚ¶þ²Ëµ¥¾Í°Ñ ......