php·¢ËÍÓʼþ
ÔÚphpÖз¢ËÍÓʼþ¿ÉÒÔÓÃ×Ô´øµÄmail()º¯Êý£¬µ«ÊÇÕâ¸öº¯Êý²»×ãµãºÜÃ÷ÏÔ£¬×îÖ÷ÒªÊÇÔÛ±¾»úÉÏûÓа²×°smtp·þÎñ¾Íû·¨Ê¹ÓÃmail()¡£
µ±È»ÏÖÔÚ»¹ÓÐphpÆäËûµÄ²å¼þ¡¢ÀàʲôµÄ£¬ÄÇЩҲÐí¹¦ÄÜÆëÈ«£¬¿ÉÊÇÍâ¼Ó¾Í¸Ð¾õ²»Ë¬¡£
ÄÇÆäËû°ì·¨µÄ»°£¬Ò»°ã»áÏ뵽ͨ¹ýSMTP·þÎñÆ÷À´·¢ËÍÓʼþ£¬µ«ÊÇÒ²»á²úÉúһϵÁÐÎÊÌ⣨¾ßÌåÓÐÄÄЩÎÊÌâ¿É¼û²Î¿¼×ÊÁÏ"ÎÞÐëSMTP·þÎñÆ÷ÖÐתֱ½Ó·¢Ë͵ç×ÓÓʼþ"£©¡£¶ÔÓÚÄ¿Ç°ÎÒµÄÐèÇóÀ´Ëµ£¬Ö»ÐèÒª·¢ËÍÓʼþ£¬²¢²»ÐèÒª½ÓÊܹ¦ÄÜ£¬ËùÒÔÏëµ½Èç¹û·¢ÓʼþÒª°ó¶¨Ä³¸öÓÊÏ䣬¾Í¸Ðµ½·Ç³£²»Ë¬£¬ËùÒÔ×îÖÕ»¹ÊǾö¶¨ÓÃsmtpÐÒéÖ±½Ó·¢ËÍÓʼþ£¬ÕâÑùҲʡÁËÓû§ÑéÖ¤Õâ¸ö²½Ö裬¿ÉÒÔËæʱËæµØ·¢Óʼþ¡£
·½·¨ºÜ¼òµ¥£¬ÈçÏ£º
Ò»¡¢ÕÒµ½Ä¿±êÓÊÏäµÄSMTP·þÎñÆ÷µÄIP µØÖ·
Ö»ÒªÏòÓòÃû·þÎñÆ÷·¢ËͲéѯ“163.com”µÈµÄÄ¿±êÓÊÏä·þÎñÆ÷µØÖ·£¬±ã¿ÉÕÒµ½Ä¿±êÓÊÏäSMTP·þÎñÆ÷µÄIP µØÖ·£¬¸Ã²éѯָÁî±»³Æ×÷MX(Mail Exchange)Óʼþ½»»»·þÎñÆ÷µÄµØÖ·²éѯ¡£
·½·¨1£º»ñÈ¡±¾»úDNS£¬È»ºóÓëDNS·þÎñÆ÷ͨÐÅʵÏÖMXÖ¸Áî²éѯ¡£(¿É¼û²Î¿¼×ÊÁÏ"ÎÞÐëSMTP·þÎñÆ÷ÖÐתֱ½Ó·¢Ë͵ç×ÓÓʼþ")
·½·¨2£ºÀûÓÃwindows×Ô´øµÄnslookup¹¤¾ß£¬¿ÉÒÔÇáËÉʵÏÖMX²éѯ¡£
·½·¨3(ÍƼö)£ºÓÃnslookup¹¤¾ß¹ÌÈ»·½±ã£¬µ«ÊDZϾ¹ÒªÖ´ÐÐÍⲿ³ÌÐò£¬Óе㲻ˬ£¬ÏÖÔÚphp5.3ÌṩÁ˸ü¼Ó·½±ãµÄÃüÁӦ¸Ã¾ÍÊÇ´ÓnslookupÉÏÀ©Õ¹³öÀ´µÄ£¬getmxrr($hostname,$hosts)Ö»ÐèÒªÌṩԶ³ÌÓʾַþÎñÆ÷µØÖ·£¬¾Í¿ÉÒÔÇáËɵõ½ËùÓеĸ÷þÎñÆ÷ÓòÃûÁË£¬ËµÃ÷ÐÅÏ¢¼û“http://cn.php.net/manual/en/function.getmxrr.php”£¬ÀïÃ滹ÄÜ¿´µ½nslookupÔÚphpÖеÄÓ¦Ó㬶ÔÓÚphp5.3ÒÔÏÂÅäÖõÄÒ²¿ÉÒԲο¼ÕâÀ·Ç³£ÊµÓá£
¶þ¡¢ÓÃsocket_createºÍsocket_connectÁ¬½ÓÄ¿±êÓÊÏä·þÎñÆ÷, SMTP¶Ë¿ÚÒ»°ãΪ25.
ҪʹÓÃsocket£¬Ê×ÏÈҪȷ±£php.iniÖеÄextension=php_sockets.dllÀ©Õ¹´ò¿ª£¬¿´phpInfo()ÏÔʾµÄÄÚÈÝÀsocketÄ£¿éÊÇ·ñΪenable¡£
×¢£¬ÍøÉÏÓкܶàÈËÓÃfsockopen(), ÔÛûÊÔ¹ý£¬²»ºÃ±È½Ï
Èý¡¢SMTPÓʼþÌá½»
SMTPÐÒé²Î¿¼[RFC821], ×î»ù±¾µÄÃüÁîÈçÏ£º
--------------------------------------------------------------------------
HELO¡¡ Ä¿±êÓÊÏä·þÎñÆ÷ÓòÃû *Õâ¸öÄ¿Ç°²»Çå³þÓÐʲô×÷Óã¬ÂÒд»òÕß²»Ð´ºÃÏñ¶¼Ã»Ê²Ã´¹Øϵ
MAIL from: <·¢ËÍÕßÓÊÏäµØÖ·> *³õʼ»¯Óʼþ´«Ê䣬¶ÔÓÚÖ±½ÓÓÃÐÒé·¢ÓʼþµÄ£¬¿ÉÒÔ²»Ð´£¬Ò²¿ÉÒÔ×Ô¶¨Ò壬ֻҪÊÇÓÐЧÓÊÏäµØÖ·¼´¿É
R
Ïà¹ØÎĵµ£º
VC6ÊÇʲô£¿
VC6¾ÍÊÇlegacy Visual
Studio 6 compiler£¬¾ÍÊÇʹÓÃÕâ¸ö±àÒëÆ÷±àÒëµÄ
VC9ÊÇʲô£¿
VC9¾ÍÊÇthe Visual Studio
2008 compiler£¬¾ÍÊÇÓÃ΢ÈíµÄVS±à¼Æ÷±àÒëµÄ
ÄÇÎÒÃÇÈçºÎÑ¡ÔñÏÂÔØÄĸö°æ±¾µÄPHPÄØ£¿
Èç¹ûÄãÊÇÔÚwindowsÏÂ
ʹÓÃApache+PHPµÄ£¬ÇëÑ¡ÔñVC6°æ±¾£»
Èç¹ûÄãÊÇÔÚwindowsÏÂʹÓÃIIS+PHPµÄ£¬ÇëÑ¡ÔñVC9 ......
http://www.phpip.com/program/php/A62010901P/25588.html
ÕâƪÎÄÕµijö·¢µãÊÇÎÒ¶Ô²å¼þ»úÖƵÄÀí½â£¬¼°ÆäÔÚPHPÖеÄʵÏÖ¡£´Ë·½°¸½öÊDzå¼þ»úÖÆÔÚPHPÖеÄʵÏÖ·½°¸Ö®Ò»£¬Ð´ÏÂÀ´ºÍ´ó¼Ò·ÖÏí£¬»¶Ó´ó¼ÒÒ»ÆðÌÖÂÛ¡£
²å¼þ£¬Ò༴Plug-in£¬ÊÇÖ¸Ò»ÀàÌض¨µÄ¹¦ÄÜÄ£¿é£¨Í¨³£ÓɵÚÈý·½¿ª·¢ÕßʵÏÖ£©£¬ËüµÄÌصãÊÇ£ºµ±ÄãÐèÒªËüµÄʱºò¼¤»îËü£¬²»Ð ......
<?php
//±äÁ¿¶¨Ò壬»ÍÖÔ²»¡Ê±µÄ½Ç¶È´óС
define("ANGLELENGTH",3);
/**
* »æÖÆͼƬ
* @param $title 3DͼµÄ±êÌâ
......
Win2003server ϼÜÉèPHPWind²úÆ·»·¾³
°²×°Ç°×¼±¸:1¡¢°²×°ºÃiis6
&nbs ......