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

PHPÄ£ÄâSMTP·¢ËÍÓʼþµÄÀà

 
PHPÄ£ÄâSMTP·¢ËÍÓʼþµÄÀà
 
<?php
/*********************************************************
 filename£ºmail.class.php
 describe£ºÓÊÏäµÄÅäÖ㬾­²âÊÔ¿ÉÒÔÊÊÓÃÓÚLinuxºÍwindows
 function£º¼ì²éÓÊÏäµÄºÏ·¨ÐÔ£¬·¢ËÍ»ù±¾µÄÓÊÏäÑéÖ¤ÐÅÏ¢
 author£º  etongchina@gmail.com
 time£º    2008-03-06 20:15
 checked£º 2008-03-11 01:03
*********************************************************/
class SEND_MAIL{
/* Public Variables */
 public $smtp_port;
 public $from;
 public $time_out;
 public $host_name;
 public $log_file;
 public $relay_host;
 public $debug;
 public $auth;//ÐèÒªauthÉí·ÝÑéÖ¤Âð?
 public $user;
 public $pass;
 private $sock;
  //¸øÀà±äÁ¿¸³Öµ ¶¨Òå¹¹ÔìÆ÷
   public function __construct($auth = FALSE)
  {
 $this->debug = FALSE;
 $this->relay_host = "smtp.163.com";//·þÎñÆ÷Ãû³Æ
 $this->smtp_port = 25;//·þÎñÆ÷¶Ë¿Ú ĬÈÏΪ25 yahoo.cnΪ465
 $this->time_out = 30; //is used in fsockopen() ĬÈÏ£º30s #
 $this->auth = $auth;
 $this->from = "zhoufeng0128@163.com
";
 $this->user = "zhoufeng0128";//ÓÊÏäÓû§Ãû
 $this->pass = "XXXX";        //ÓÊÏäÃÜÂë
 $this->host_name = "localhost"; //is used in HELO command
 $this->log_file = "";
 $this->sock = FALSE;
  }
/* Main Function */
function sendmail($to, $from, $subject = "", $body = "", $mailtype, $cc = "", $bcc = "", $additional_headers = ""){ 
 $mail_from = $this->get_address($this->strip_comment($from));
 $body = ereg_replace("(^|(\r\n))(\.)", "\1.\3", $body);
 $header .= "MIME-Version:1.0\r\n";
 if($mailtype=="HTML"){
 $header .= "Content-


Ïà¹ØÎĵµ£º

linuxÖÐÉý¼¶phpºÍGD¿â±Ê¼Ç


linuxÖÐÉý¼¶phpºÍGD¿â±Ê¼Ç
php-5.1.2.tar.gz
°²×°phpËùÐèµÄÈí¼þ°ü
£¨ÆäÖÐlibxml2ÊÇ°²×°php5±ØÐëµÄ£¬ÎªÊ²Ã´»¹ÐèÒªperl´ô»á˵Ã÷Ô­Òò¡££©
libxml2-2.6.19.tar.gz
libxslt-1.1.15.tar.gz
ActivePerl-5.8.8.817-i686-linux-2.2.17-gcc-257965.rpm
curl-7.15.0.tar.gz
GD¿âËùÐèÒªÈí¼þ°ü
£¨ÓÐÈË˵PHPÔ´Âë°üÀï×Ô ......

2009Äê9ÔÂÓïÑÔÅÅÐаñ£ºPHP³¬Ô½C++

TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñÕ¹ÏÖÁ˱à³ÌÓïÑÔµÄÁ÷ÐÐÇ÷ÊÆ¡£Ã¿¸öÔ£¬¶¼ÓÐ×îеÄÊý¾Ý±»¸üС£Õâ·ÝÅÅÐаñµÄÊý¾ÝÈ¡ÑùÀ´Ô´ÓÚ»¥ÁªÍøÉϸ»Óо­ÑéµÄ³ÌÐòÔ±¡¢ÉÌ ÒµÓ¦Óá¢ÖøÃûµÄËÑË÷ÒýÇ棨ÖîÈç¹È¸è¡¢ MSN ¡¢ÑÅ»¢£©µÄ¹Ø¼ü×ÖÅÅÃû¡¢ Alexa ÉϵÄÅÅÃûµÈ¡£Çë×¢ÒâÕâ¸öÅÅÐаñÖ»ÊÇ·´Ó³ÁËij¸ö±à³ÌÓïÑÔµÄÈÈÃÅ³Ì¶È , Õâ²¢²»´ú±íËüÊÇÒ»¸ö×îºÃµÄ±à³ÌÓïÑÔ»òÊ ......

ÀûÓÃWindows Schedule TaskÔËÐÐphp³ÌÐò

¼Æ»®ÈÎÎñ£¨Schedule Task£©ÊÇwindowsƽ̨ÉϺÍcronÀàËƵÄÒ»¸ö³ÌÐò£¬µ±È»¹¦ÄÜÉϲîÁ˺ܶàÁË¡£
ÒòΪÐèҪÿ¸öСʱÔËÐÐÒ»¸öPHP³ÌÐò£¬ÊÖ¶¯²Ù×÷²»ÏÖʵÁË¡£
Ê×ÏÈÔÚcmdϲâÊÔ£¬ÀýÈ磺 c:\appserv\php5\php.exe "C:\AppServ\www\temp2.php"
ÓÐÒ»µãҪעÒâ¾ÍÊÇÈç¹ûÄǸöPHPÒýÓÃÁËÆäËûÒ³Ã棬ÐèÒªÌṩ¾ø¶Ô·¾¶ÁË£¬ÖÁÉÙÎҵIJâÊÔ ......

php ¼¸ÖÖÅÅÐò·½Ê½

1.ðÅÝÅÅÐò
function m_sort($arr)
{
    $l = count($arr);
    if($l==0) return false;
  
    for($i=0;$i<$l-1;$i++)
    {
        for($j=$i+1;$j<$l-1;$j++)
     ......

PHPѧϰ

phpÊÇÒ»ÖÖ¿ª·ÅÔ´´úÂ롢ǶÈëʽ·þÎñÆ÷¶ËµÄ½Å±¾ÓïÑÔ¡£
1¡¢PHPÒ²ÊÇǶÈëʽCGIÓïÑÔ¡£PHP4ÊDZ»·â×°ÔÚ±ê¼ÇÖеÄǶÈëʽÓïÑÔ£¬Äã¿ÉÒÔÇáÒ×µØÔÚPHPºÍHTMLÖ®¼ä½øÐÐת»»£¬¶ø²»±ØʹÓôóÁ¿´úÂëÒÔÊä³öHTML¡£Í¨ÓÃÍø¹Ø½Ó¿Ú(CGI)ÔÊÐíÓû§±àдÄܲúÉúHTMLÒÔ¼°¶¯Ì¬´¦ÀíÍøÒ³Êý¾ÝµÄ¼ÆËã»ú³ÌÐò¡£PHP¿ÉÒÔ±»¹éÀàΪCGI¡£
2¡¢Ó¦ÓÃPHPµÄÈý¸öÁìÓò£º(1)·þÎñÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ