Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÇëÎÊÔõôÓÃ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 //²»ÊÇÕæµÄ,²âÊÔ




Ïà¹ØÎÊ´ð£º

php »ñÈ¡Ò³ÃæÄÚÈÝ - PHP / »ù´¡±à³Ì

Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......

ÇëÎÊphp²ÉÓÃʲô¼ÓÃÜ·½Ê½²»±»ÆÆ½â£¿ - PHP / »ù´¡±à³Ì

zend guard¼ÓÃܵÄphpÊÇ¿ÉÒÔÆÆ½âµÄ£¬ÓÐµÄ ËµÊÇʹÓú¯Êý»ìÏý¿ÉÒÔ¸üÄÑÆÆ½âһЩ¡£ÔõôʹÓÃÄØ¡£
»òÕß´ó¼Ò¸æËßÎÒÄÄÖÖ¼ÓÃÜ·½Ê½¸ü°²È«¡£Ð»Ð»ÁË¡£
ÎÒĿǰµÄzend guard°æ±¾ÊÇ4.0.1
ÎÞ½â

ÒýÓÃ
ÎÞ½â
²»¿ÉÄܰɡ£ÔÚÍøÉϲéÁ ......

phpÎļþµ÷ÓÃjsÎļþÀïµÄ·½·¨£¿ - PHP / »ù´¡±à³Ì

¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿
»òÕßÔÚjsÎļþÀïµ÷ÓÃphpÎļþдµÄseesion£¿
PHP¸ÕÈëÃÅѧϰ,ÓÑÇé¶¥Ò»¸ö


¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿
//echo '<script>alert("ok");< ......

ÓÃphp±¸·ÝÊý¾Ý¿â³É¹¦£¬»¹Ô­Ê±³ö´í - PHP / ¿ªÔ´×ÊÔ´

ÊÇÓñðÈËдµÄÀà×öµÄ£¬»¹Ô­Ê±Ìáʾ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 ......

phpÎļþÉÏ´«³öÀ´µÄ¼¸¸öСÎÊÌâ - PHP / ¿ªÔ´×ÊÔ´

ÎÒÓÃphpÎļþÉÏ´«
ʹÓÃmove_upload_file()£¬
Ò»ÉÏ´«Îļþ¾Í³ö´íÁË£¬
³ö´íµÄÐÅÏ¢ÊÇ
Warning: move_uploaded_file(F:\Server\www\): failed to open stream: Permission denied in F:\Server\www\eoool\finish\uploa ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ