ÇëÎÊÔõôÓÃphpµÄmailº¯Êý·¢ËÍÓʼþ?? - PHP / »ù´¡±à³Ì
ÎÒÓÃÒÔÏ´úÂë½øÐÐÁ˲âÊÔ,ÌáʾOK,µ«ÊÇûÓÐÊÕµ½Óʼþ,²»ÖªµÀÓÐËÖªµÀʲôÔÒò $to ="mymail@aa.com"; //²»ÊÇÕæµÄ,²âÊÔ $subject = "test"; $msg = "test"; $headers = "from:frommail@aa.com"; //²»ÊÇÕæµÄ,²âÊÔ if(mail("$to", "$subject", "$msg", "$headers")) echo "ok";// else echo "no";//
@ini_set("SMTP",$this->smtp["host"]); @ini_set("smtp_port",$this->smtp["port"]); @ini_set("sendmail_from",$this->smtp["from"]); ÒªÉèÖÃphp.iniÀïµÄÅäÖᣠһ°ãÊÇloaclhost£¬»¹Òª×¢Òâ·¢ËͶϿڲ»Òª±»ÆÁ±ÎÁË Â¥É쵀 ÄãÔõôɶ¶¼ÖªµÀ¡£¡£¡£ Äã²»µ±°ßÖñÌ«ÀË·ÑÁË ÅäÖÃÖÐÐ޸ĴúÀí. mail·µ»ØÕýÈ·£¬²»´ú±íÒѾ·¢ËͳöÈ¥¡£ÒýÓà @ini_set("SMTP",$this->smtp["host"]); @ini_set("smtp_port",$this->smtp["port"]); @ini_set("sendmail_from",$this->smtp["from"]); ÒªÉèÖÃphp.iniÀïµÄÅäÖᣠһ°ãÊÇloaclhost£¬»¹Òª×¢Òâ·¢ËͶϿڲ»Òª±»ÆÁ±ÎÁË ·Ç³£¸ÐлdingsongtaoµÄÈÈÐĻظ´,ÎÒ¿´ÁË,Äã˵µÄÉèÖÃÎÒÒѾÉèÖùýÁË. ÔÚphp.INIÀï [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = frommail@aa.com //²»ÊÇÕæµÄ,²âÊÔ
Ïà¹ØÎÊ´ð£º
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)ÖеÄÊý¾ ......
Çë½Ì¸ßÊÖ°ïæ£¬session_start£¨£©·ÅÔÚÍⲿµÄÎļþÓà require »ò include °üº¬½øÀ´£¬ÇëÎÊÕâÑù×öºÏÀíÂ𣿣¿´úÂëÔËÐÐÊÇÕý³£µÄ£¬ÕâÑù×öºÏÀíÂ𣿣¿Çë¸ßÊÖÖ¸µã¡£¡£¡£¡£ лл···· require »ò include ......
¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿ »òÕßÔÚjsÎļþÀïµ÷ÓÃphpÎļþдµÄseesion£¿ PHP¸ÕÈëÃÅѧϰ,ÓÑÇé¶¥Ò»¸ö ¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿ //echo '<script>alert("ok");< ......
ÏÖÔÚÓÐa,bÈý¸öÒ³Ãæ bÊǵÇÂ½Ò³Ãæ£¬·ÃÎÊaÒ³Ãæ£¬Èç¹ûûÓеǼ£¬Ôòheaderµ½bÒ³Ãæ ÔÚbÒ³ÃæÈ¡²»µ½HTTP_REFERER Ã²ËÆHTTP_REFERERÖ»ÄÜÈ¡µ½a±êÇ©ºÍpost,get·½·¨µÄÌø×ª Äܲ»ÄÜαÔìÒ»¸öHTTP_REFERER£¬È»ºó¹ýÈ¥£¿ ¼ÈÈ»Ö ......
ÊÇÓñðÈËдµÄÀà×öµÄ£¬»¹ÔʱÌáʾYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO admin(seq,passwd,type,n ......