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

PHP·¢ËÍEmail Àà


 ¾­²âÊÔ  ûÓÐÎÊÌâ
<?
class smtp
{
/* Public Variables */
var $smtp_port;
var $time_out;
var $host_name;
var $log_file;
var $relay_host;
var $debug;
var $auth;
var $user;
var $pass;
/* Private Variables */
var $sock;
/* Constractor */
function smtp($relay_host = "", $smtp_port = 25,$auth = false,$user,$pass)
{
$this->debug = FALSE;
$this->smtp_port = $smtp_port;
$this->relay_host = $relay_host;
$this->time_out = 30; //is used in fsockopen()
#
$this->auth = $auth;//auth
$this->user = $user;
$this->pass = $pass;
#
$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-Type:text/html\r\n";
}
$header .= "To: ".$to."\r\n";
if ($cc != "") {
$header .= "Cc: ".$cc."\r\n";
}
$header .= "from: $from<".$from.">\r\n";
$header .= "Subject: ".$subject."\r\n";
$header .= $additional_headers;
$header .= "Date: ".date("r")."\r\n";
$header .= "X-Mailer:By Redhat (PHP/".phpversion().")\r\n";
list($msec, $sec) = explode(" ", microtime());
$header .= "Message-ID: <".date("YmdHis", $sec).".".($msec*1000000).".".$mail_from.">\r\n";
$TO = explode(",", $this->strip_comment($to));
if ($cc != "") {
$TO = array_merge($TO, explode(",", $this->str


Ïà¹ØÎĵµ£º

phpÈý°å¸«——ÇëÇóºÍ»á»°

 phpÊÇÒ»Ãżòµ¥¶øÓÖÇ¿´óµÄÓïÑÔ£¬ËùÓеÄphpÊé¼®¶¼»áÕâÑù˵£¨Ë­ÈÃÎÒ×î°®¿´Ç°ÑÔÄØ£©¡£Èç¹û½«.net¡¢jsp±È×÷µ¶½££¬ÄÇôphp¾ÍÊǸ«Í·¡£Ñ§»á³ÌÒ§½ðµÄÈý°å¸«£¬Ëä²»ÄÜÌìÏÂÎ޵У¬È´¿ÉÒÔ°²ÉíÁ¢Ãü¡£
½ñÌìÔÛÃÇѧϰµÚÒ»°å¸«£¬ÍøÕ¾½»»¥µÄ»ù´¡£ºÇëÇóºÍ»á»°¡£
PHPÖпͻ§¶ËÓë·þÎñÆ÷ÐÅÏ¢µÄ´«µÝÊÇÒÀ¿¿ÇëÇóÓ¦´ðºÍ»á»°±£³ÖʵÏֵ쬶øPHP¶ÔÓÚ ......

½«PHP´úÂëת»»µ½Scala´úÂë

ÓÐÒ»¸ö¿ªÔ´ÏîÄ¿Ìṩ½«PHP´úÂëת»»³ÉScala´úÂëµÄ¹¦ÄÜ£¬¸ÃÏîÄ¿µÄÍøÕ¾ÊÇ http://code.google.com/p/php-to-scala-migration-helper/¡£
In short, php-to-scala converts PHP code to clean, maintainable Scala source code. To cut to the chase, see ConversionExamples, or the feature-by-feature DesignD ......

PHP£¬JavaºÍ.NETµÄ¹ýÈ¥£¬ÏÖÔÚºÍδÀ´)

PHP£¬JavaºÍ.NETµÄ¹ýÈ¥£¬ÏÖÔÚºÍδÀ´
±¾ÎĶÔWeb±à³ÌÓïÑÔ½øÐÐÁËÒ»·­ÌÖÂÛ£¬ÌÖÂ۵ĶÔÏóÖ÷ÒªÊÇPHP£¬JavaºÍ.NETƽ̨ÉϵÄVB.NETºÍC#¡£ÎÄÕ¶ÔËÄÖÖÓïÑÔÔÚWeb¿ª·¢ÉϵÄÌØµã½øÐÐÁ˼òÂÔµÄÃèÊö£¬²¢Ö÷ÒªÔÚÐÔÄÜ·½Ãæ½øÐÐÁ˱Ƚϡ£
¡¾51CTO¾«Ñ¡ÒëÎÄ¡¿PHP£¬JavaºÍ.NETÒѾ­³ÉΪÁËδÀ´ÎåÄêÄÚ³ÌÐòÔ±±ØÐë¾ß±¸µÄ¼¼ÄÜ£¬¶øÕâÈýÖÖÓïÑÔ£¨»òÕß¿ÉÒÔ³ÆÖ®Î ......

php soap


Ô­ÎÄת×Ô £ºhttp://home.phpchina.com/space.php?uid=49655&do=blog&id=182488
Ò»£® ±Ø±¸ÖªÊ¶
1.wsdl(web·þÎñ±ê¼ÇÓïÑÔ)
       WSDL£¨ÍøÂç·þÎñÃèÊöÓïÑÔ£¬Web Services Description Language£©ÊÇÒ»ÃÅ»ùÓÚ XML
µÄÓïÑÔ£¬ÓÃÓÚÃèÊö Web Services ÒÔ¼°ÈçºÎ¶ÔËüÃǽøÐзÃÎÊ¡£
  ......

crontabÀïÔËÐÐphpÎÞ·¨Á¬½Óµ½Êý¾Ý¿â

ÎÒÔÚmy.cnfÖÐ×¢Ê͵ôlog-bin=mysql-binºÍbinlog_format=mixedºó,ÎÞ·¨Æô¶¯mysql
ÎÒÖØÆôvpsºó,ÄÜÆô¶¯mysqlÀ²
ÓÃweb·½Ê½ÔËÐÐphp,Õý³£
µ«ÊÇÔÚcrontabÀïÖ´ÐеÄphp½Å±¾,Ìáʾ: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ²é¿´µ½/var/lib/mysql/Ŀ¼ÏÂ,ÓÐÒ»¸ömysql.s ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ