<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[逗死差屁(dosxp)微博聚合门户]]></title> 
<link>http://www.dosxp.com/index.php</link> 
<description><![CDATA[自由&共享&快乐]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[逗死差屁(dosxp)微博聚合门户]]></copyright>
<item>
<link>http://www.dosxp.com/read.php/284.htm</link>
<title><![CDATA[PHP在线提交留言直接发到邮箱]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+技术文档{TD}]]></category>
<pubDate>Thu, 15 Jul 2010 01:31:04 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/284.htm</guid> 
<description>
<![CDATA[ 
	<div class="code">PHP在线提交留言直接发到邮箱的功能(jmail实现在线发邮件代码) <br/>email.php<br/><br/>&lt;?<br/>require(&quot;smtp.php&quot;);<br/>#########################################<br/>$mailbody=&quot;&lt;HTML&gt;&lt;HEAD&gt;&lt;META http-equiv=Content-Type content=&#039;text/html; charset=gb2312&#039;&gt;&lt;style type=&#039;text/css&#039;&gt;&quot;;<br/>$mailbody=$mailbody.&quot;&lt;!--&quot;;<br/>$mailbody=$mailbody.&quot;body,td,th &#123;&quot;;<br/>$mailbody=$mailbody.&quot; font-size: 16px;&quot;;<br/>$mailbody=$mailbody.&quot; color: #000000;&quot;;<br/>$mailbody=$mailbody.&quot;&#125;.red&#123; color:#FF0000;&#125;&quot;;<br/>$mailbody=$mailbody.&quot;--&gt;&quot;;<br/>$mailbody=$mailbody.&quot;&lt;/style&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;p&gt;你好！&lt;font class=&#039;red&#039;&gt; &lt;/font&gt;&lt;br&gt;&lt;br&gt;&quot;;<br/>$mailbody=$mailbody.&quot; 您已经注册成功！请点击下列连接进行验证&lt;br&gt;&lt;br&gt;&quot;;<br/>$mailbody=$mailbody.&quot; &lt;a href=&#039;#&#039; target=&#039;_blank&#039;&gt;请您点击下列连接进行验证&lt;/a&gt; &lt;/p&gt;&quot;;<br/>$mailbody=$mailbody.&quot;&lt;p&gt;如果上连接点击不开请复制地址 &lt;br&gt;&lt;br&gt;&quot;;<br/>$mailbody=$mailbody.&quot;http://www.163.com&quot;;<br/>$mailbody=$mailbody.&quot;&lt;br&gt;&lt;br&gt;在IE上打开&lt;/p&gt;&quot;;<br/>$mailbody=$mailbody.&quot;&lt;/BODY&gt;&lt;/HTML&gt;&quot;;<br/>##########################################<br/>$smtpserver = &quot;smtp.126.com&quot;;//SMTP服务器<br/>$smtpserverport =25;//SMTP服务器端口<br/>$smtpusermail = &#039;leaf-126@126.com&#039;; //SMTP服务器的用户邮箱<br/>$smtpemailto = &quot;leaf-126@126.com&quot;;//发送给谁<br/>$smtpuser = &quot;leaf-126&quot;;//SMTP服务器的用户帐号<br/>$smtppass = &quot;leaflove126&quot;;//SMTP服务器的用户密码<br/>$mailsubject = &quot;邮件主题&quot;;//邮件主题<br/>$mailbody = $mailbody;//&quot;&lt;h1&gt;This is a test mail&lt;/h1&gt;&quot;;//邮件内容<br/>$mailtype = &quot;HTML&quot;;//邮件格式（HTML/TXT）,TXT为文本邮件<br/>##########################################<br/>$smtp = new smtp($smtpserver,$smtpserverport,true,$smtpuser,$smtppass);//这里面的一个true是表示使用身份验证,否则不使用身份验证.<br/>$smtp-&gt;debug = false;//TRUE;//是否显示发送的调试信息<br/>$smtp-&gt;sendmail($smtpemailto, $smtpusermail, $mailsubject, $mailbody, $mailtype);<br/>?&gt;<br/><br/>################## smtp.php ###########################<br/><br/>&lt;?php<br/>class smtp<br/>&#123;<br/>/* Public Variables */<br/>var $smtp_port;<br/>var $time_out;<br/>var $host_name;<br/>var $log_file;<br/>var $relay_host;<br/>var $debug;<br/>var $auth;<br/>var $user;<br/>var $pass;<br/>/* Private Variables */ <br/>var $sock;<br/>/* Constractor */<br/>function smtp($relay_host = &quot;&quot;, $smtp_port = 25,$auth = false,$user,$pass)<br/>&#123;<br/>$this-&gt;debug = FALSE;<br/>$this-&gt;smtp_port = $smtp_port;<br/>$this-&gt;relay_host = $relay_host;<br/>$this-&gt;time_out = 30; //is used in fsockopen() <br/>#<br/>$this-&gt;auth = $auth;//auth<br/>$this-&gt;user = $user;<br/>$this-&gt;pass = $pass;<br/>#<br/>$this-&gt;host_name = &quot;localhost&quot;; //is used in HELO command <br/>$this-&gt;log_file = &quot;&quot;;<br/><br/>$this-&gt;sock = FALSE;<br/>&#125;<br/>/* Main Function */<br/>function sendmail($to, $from, $subject = &quot;&quot;, $body = &quot;&quot;, $mailtype, $cc = &quot;&quot;, $bcc = &quot;&quot;, $additional_headers = &quot;&quot;)<br/>&#123;<br/>$mail_from = $this-&gt;get_address($this-&gt;strip_comment($from));<br/>$body = ereg_replace(&quot;(^&#124;(&#92;r&#92;n))(&#92;.)&quot;, &quot;&#92;1.&#92;3&quot;, $body);<br/>$header .= &quot;MIME-Version:1.0&#92;r&#92;n&quot;;<br/>if($mailtype==&quot;HTML&quot;)&#123;<br/>$header .= &quot;Content-Type:text/html&#92;r&#92;n&quot;;<br/>&#125;<br/>$header .= &quot;To: &quot;.$to.&quot;&#92;r&#92;n&quot;;<br/>if ($cc != &quot;&quot;) &#123;<br/>$header .= &quot;Cc: &quot;.$cc.&quot;&#92;r&#92;n&quot;;<br/>&#125;<br/>$header .= &quot;From: $from&lt;&quot;.$from.&quot;&gt;&#92;r&#92;n&quot;;<br/>$header .= &quot;Subject: &quot;.$subject.&quot;&#92;r&#92;n&quot;;<br/>$header .= $additional_headers;<br/>$header .= &quot;Date: &quot;.date(&quot;r&quot;).&quot;&#92;r&#92;n&quot;;<br/>$header .= &quot;X-Mailer:By Redhat (PHP/&quot;.phpversion().&quot;)&#92;r&#92;n&quot;;<br/>list($msec, $sec) = explode(&quot; &quot;, microtime());<br/>$header .= &quot;Message-ID: &lt;&quot;.date(&quot;YmdHis&quot;, $sec).&quot;.&quot;.($msec*1000000).&quot;.&quot;.$mail_from.&quot;&gt;&#92;r&#92;n&quot;;<br/>$TO = explode(&quot;,&quot;, $this-&gt;strip_comment($to));<br/>if ($cc != &quot;&quot;) &#123;<br/>$TO = array_merge($TO, explode(&quot;,&quot;, $this-&gt;strip_comment($cc)));<br/>&#125;<br/>if ($bcc != &quot;&quot;) &#123;<br/>$TO = array_merge($TO, explode(&quot;,&quot;, $this-&gt;strip_comment($bcc)));<br/>&#125;<br/>$sent = TRUE;<br/>foreach ($TO as $rcpt_to) &#123;<br/>$rcpt_to = $this-&gt;get_address($rcpt_to);<br/>if (!$this-&gt;smtp_sockopen($rcpt_to)) &#123;<br/>$this-&gt;log_write(&quot;Error: Cannot send email to &quot;.$rcpt_to.&quot;&#92;n&quot;);<br/>$sent = FALSE;<br/>continue;<br/>&#125;<br/>if ($this-&gt;smtp_send($this-&gt;host_name, $mail_from, $rcpt_to, $header, $body)) &#123;<br/>$this-&gt;log_write(&quot;E-mail has been sent to &lt;&quot;.$rcpt_to.&quot;&gt;&#92;n&quot;);<br/>&#125; else &#123;<br/>$this-&gt;log_write(&quot;Error: Cannot send email to &lt;&quot;.$rcpt_to.&quot;&gt;&#92;n&quot;);<br/>$sent = FALSE;<br/>&#125;<br/>fclose($this-&gt;sock);<br/>$this-&gt;log_write(&quot;Disconnected from remote host&#92;n&quot;);<br/>&#125;<br/>return $sent;<br/>&#125;<br/><br/>/* Private Functions */<br/><br/>function smtp_send($helo, $from, $to, $header, $body = &quot;&quot;)<br/>&#123;<br/>if (!$this-&gt;smtp_putcmd(&quot;HELO&quot;, $helo)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending HELO command&quot;);<br/>&#125;<br/>#auth<br/>if($this-&gt;auth)&#123;<br/>if (!$this-&gt;smtp_putcmd(&quot;AUTH LOGIN&quot;, base64_encode($this-&gt;user))) &#123;<br/>return $this-&gt;smtp_error(&quot;sending HELO command&quot;);<br/>&#125;<br/>if (!$this-&gt;smtp_putcmd(&quot;&quot;, base64_encode($this-&gt;pass))) &#123;<br/>return $this-&gt;smtp_error(&quot;sending HELO command&quot;);<br/>&#125;<br/>&#125;<br/>#<br/>if (!$this-&gt;smtp_putcmd(&quot;MAIL&quot;, &quot;FROM:&lt;&quot;.$from.&quot;&gt;&quot;)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending MAIL FROM command&quot;);<br/>&#125;<br/>if (!$this-&gt;smtp_putcmd(&quot;RCPT&quot;, &quot;TO:&lt;&quot;.$to.&quot;&gt;&quot;)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending RCPT TO command&quot;);<br/>&#125;<br/>if (!$this-&gt;smtp_putcmd(&quot;DATA&quot;)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending DATA command&quot;);<br/>&#125;<br/>if (!$this-&gt;smtp_message($header, $body)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending message&quot;);<br/>&#125;<br/>if (!$this-&gt;smtp_eom()) &#123;<br/>return $this-&gt;smtp_error(&quot;sending &lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt; &#91;EOM&#93;&quot;);<br/>&#125;<br/>if (!$this-&gt;smtp_putcmd(&quot;QUIT&quot;)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending QUIT command&quot;);<br/>&#125;<br/>return TRUE;<br/>&#125;<br/>function smtp_sockopen($address)<br/>&#123;<br/>if ($this-&gt;relay_host == &quot;&quot;) &#123;<br/>return $this-&gt;smtp_sockopen_mx($address);<br/>&#125; else &#123;<br/>return $this-&gt;smtp_sockopen_relay();<br/>&#125;<br/>&#125;<br/>function smtp_sockopen_relay()<br/>&#123;<br/>$this-&gt;log_write(&quot;Trying to &quot;.$this-&gt;relay_host.&quot;:&quot;.$this-&gt;smtp_port.&quot;&#92;n&quot;);<br/>$this-&gt;sock = @fsockopen($this-&gt;relay_host, $this-&gt;smtp_port, $errno, $errstr, $this-&gt;time_out);<br/>if (!($this-&gt;sock &amp;&amp; $this-&gt;smtp_ok())) &#123;<br/>$this-&gt;log_write(&quot;Error: Cannot connenct to relay host &quot;.$this-&gt;relay_host.&quot;&#92;n&quot;);<br/>$this-&gt;log_write(&quot;Error: &quot;.$errstr.&quot; (&quot;.$errno.&quot;)&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/>$this-&gt;log_write(&quot;Connected to relay host &quot;.$this-&gt;relay_host.&quot;&#92;n&quot;);<br/>return TRUE;;<br/>&#125;<br/><br/>function smtp_sockopen_mx($address)<br/>&#123;<br/>$domain = ereg_replace(&quot;^.+@(&#91;^@&#93;+)$&quot;, &quot;&#92;1&quot;, $address);<br/>if (!@getmxrr($domain, $MXHOSTS)) &#123;<br/>$this-&gt;log_write(&quot;Error: Cannot resolve MX &#92;&quot;&quot;.$domain.&quot;&#92;&quot;&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/>foreach ($MXHOSTS as $host) &#123;<br/>$this-&gt;log_write(&quot;Trying to &quot;.$host.&quot;:&quot;.$this-&gt;smtp_port.&quot;&#92;n&quot;);<br/>$this-&gt;sock = @fsockopen($host, $this-&gt;smtp_port, $errno, $errstr, $this-&gt;time_out);<br/>if (!($this-&gt;sock &amp;&amp; $this-&gt;smtp_ok())) &#123;<br/>$this-&gt;log_write(&quot;Warning: Cannot connect to mx host &quot;.$host.&quot;&#92;n&quot;);<br/>$this-&gt;log_write(&quot;Error: &quot;.$errstr.&quot; (&quot;.$errno.&quot;)&#92;n&quot;);<br/>continue;<br/>&#125;<br/>$this-&gt;log_write(&quot;Connected to mx host &quot;.$host.&quot;&#92;n&quot;);<br/>return TRUE;<br/>&#125;<br/>$this-&gt;log_write(&quot;Error: Cannot connect to any mx hosts (&quot;.implode(&quot;, &quot;, $MXHOSTS).&quot;)&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/><br/>function smtp_message($header, $body)<br/>&#123;<br/>fputs($this-&gt;sock, $header.&quot;&#92;r&#92;n&quot;.$body);<br/>$this-&gt;smtp_debug(&quot;&gt; &quot;.str_replace(&quot;&#92;r&#92;n&quot;, &quot;&#92;n&quot;.&quot;&gt; &quot;, $header.&quot;&#92;n&gt; &quot;.$body.&quot;&#92;n&gt; &quot;));<br/><br/>return TRUE;<br/>&#125;<br/><br/>function smtp_eom()<br/>&#123;<br/>fputs($this-&gt;sock, &quot;&#92;r&#92;n.&#92;r&#92;n&quot;);<br/>$this-&gt;smtp_debug(&quot;. &#91;EOM&#93;&#92;n&quot;);<br/><br/>return $this-&gt;smtp_ok();<br/>&#125;<br/><br/>function smtp_ok()<br/>&#123;<br/>$response = str_replace(&quot;&#92;r&#92;n&quot;, &quot;&quot;, fgets($this-&gt;sock, 512));<br/>$this-&gt;smtp_debug($response.&quot;&#92;n&quot;);<br/><br/>if (!ereg(&quot;^&#91;23&#93;&quot;, $response)) &#123;<br/>fputs($this-&gt;sock, &quot;QUIT&#92;r&#92;n&quot;);<br/>fgets($this-&gt;sock, 512);<br/>$this-&gt;log_write(&quot;Error: Remote host returned &#92;&quot;&quot;.$response.&quot;&#92;&quot;&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/>return TRUE;<br/>&#125;<br/>function smtp_putcmd($cmd, $arg = &quot;&quot;)<br/>&#123;<br/>if ($arg != &quot;&quot;) &#123;<br/>if($cmd==&quot;&quot;) $cmd = $arg;<br/>else $cmd = $cmd.&quot; &quot;.$arg;<br/>&#125;<br/>fputs($this-&gt;sock, $cmd.&quot;&#92;r&#92;n&quot;);<br/>$this-&gt;smtp_debug(&quot;&gt; &quot;.$cmd.&quot;&#92;n&quot;);<br/>return $this-&gt;smtp_ok();<br/>&#125;<br/>function smtp_error($string)<br/>&#123;<br/>$this-&gt;log_write(&quot;Error: Error occurred while &quot;.$string.&quot;.&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/>function log_write($message)<br/>&#123;<br/>$this-&gt;smtp_debug($message);<br/>if ($this-&gt;log_file == &quot;&quot;) &#123;<br/>return TRUE;<br/>&#125;<br/>$message = date(&quot;M d H:i:s &quot;).get_current_user().&quot;&#91;&quot;.getmypid().&quot;&#93;: &quot;.$message;<br/>if (log_file&gt;!@file_exists($this-&gt;log_file) &#124;&#124; !($fp = @fopen($this-&gt;log_file, &quot;a&quot;))) &#123;<br/>$this-&gt;smtp_debug(&quot;Warning: Cannot open log file &#92;&quot;&quot;.$this-&gt;log_file.&quot;&#92;&quot;&#92;n&quot;);<br/>return FALSE;;<br/>&#125;<br/>flock($fp, LOCK_EX);<br/>fputs($fp, $message);<br/>fclose($fp);<br/><br/>return TRUE;<br/>&#125;<br/><br/>function strip_comment($address)<br/>&#123;<br/>$comment = &quot;&#92;(&#91;^()&#93;*&#92;)&quot;;<br/>while (ereg($comment, $address)) &#123;<br/>$address = ereg_replace($comment, &quot;&quot;, $address);<br/>&#125;<br/><br/>return $address;<br/>&#125;<br/><br/>function get_address($address)<br/>&#123;<br/>$address = ereg_replace(&quot;(&#91; &#92;t&#92;r&#92;n&#93;)+&quot;, &quot;&quot;, $address);<br/>$address = ereg_replace(&quot;^.*&lt;(.+)&gt;.*$&quot;, &quot;&#92;1&quot;, $address);<br/>return $address;<br/>&#125;<br/>function smtp_debug($message)<br/>&#123;<br/>if ($this-&gt;debug) &#123;<br/>echo $message;<br/>&#125;<br/>&#125;<br/>&#125;<br/>?&gt;<br/> <br/></div>
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/283.htm</link>
<title><![CDATA[用php制作给邮箱发邮件的留言表单[实战版]]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+技术文档{TD}]]></category>
<pubDate>Thu, 15 Jul 2010 01:30:13 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/283.htm</guid> 
<description>
<![CDATA[ 
	<div class="code">最近需要弄这么一个东西，问了几个人，<br/><br/>首先保证机器上有SMPT协议，我也没在意，你可以先实验，不行再装<br/><br/>然后就是三个文件 xxx.htm 这个是表单页文件<br/><br/>就是一个静态表单，关键就是要把action=&quot;sendmail.php&quot;这填好，提交方式我用的是post<br/><br/>第二个文件是email.class.php文件，不需要你修改什么，只要路径放对即可<br/><br/>代码:<br/><br/>&lt;?<br/>class smtp<br/>&#123;<br/>/* Public Variables */<br/>var $smtp_port;<br/>var $time_out;<br/>var $host_name;<br/>var $log_file;<br/>var $relay_host;<br/>var $debug;<br/>var $auth;<br/>var $user;<br/>var $pass;<br/><br/>/* Private Variables */<br/>var $sock;<br/><br/>/* Constractor */<br/>function smtp($relay_host = &quot;&quot;, $smtp_port = 25,$auth = false,$user,$pass)<br/>&#123;<br/>$this-&gt;debug = FALSE;<br/>$this-&gt;smtp_port = $smtp_port;<br/>$this-&gt;relay_host = $relay_host;<br/>$this-&gt;time_out = 30; //is used in fsockopen()<br/>#<br/>$this-&gt;auth = $auth;//auth<br/>$this-&gt;user = $user;<br/>$this-&gt;pass = $pass;<br/>#<br/>$this-&gt;host_name = &quot;localhost&quot;; //is used in HELO command<br/>$this-&gt;log_file =&quot;&quot;;<br/><br/>$this-&gt;sock = FALSE;<br/>&#125;<br/><br/>/* Main Function */<br/>function sendmail($to, $from, $subject = &quot;&quot;, $body = &quot;&quot;, $mailtype, $cc = &quot;&quot;, $bcc = &quot;&quot;, $additional_headers = &quot;&quot;)<br/>&#123;<br/>$mail_from = $this-&gt;get_address($this-&gt;strip_comment($from));<br/>$body = ereg_replace(&quot;(^&#124;(&#92;r&#92;n))(&#92;&#92;.)&quot;, &quot;&#92;&#92;1.&#92;&#92;3&quot;, $body);<br/>$header .= &quot;MIME-Version:1.0&#92;r&#92;n&quot;;<br/>if($mailtype==&quot;HTML&quot;)&#123;<br/>$header .= &quot;Content-Type:text/html&#92;r&#92;n&quot;;<br/>&#125;<br/>$header .= &quot;To: &quot;.$to.&quot;&#92;r&#92;n&quot;;<br/>if ($cc != &quot;&quot;) &#123;<br/>$header .= &quot;Cc: &quot;.$cc.&quot;&#92;r&#92;n&quot;;<br/>&#125;<br/>$header .= &quot;From: $from&lt;&quot;.$from.&quot;&gt;&#92;r&#92;n&quot;;<br/>$header .= &quot;Subject: &quot;.$subject.&quot;&#92;r&#92;n&quot;;<br/>$header .= $additional_headers;<br/>$header .= &quot;Date: &quot;.date(&quot;r&quot;).&quot;&#92;r&#92;n&quot;;<br/>$header .= &quot;X-Mailer:By Redhat (PHP/&quot;.phpversion().&quot;)&#92;r&#92;n&quot;;<br/>list($msec, $sec) = explode(&quot; &quot;, microtime());<br/>$header .= &quot;Message-ID: &lt;&quot;.date(&quot;YmdHis&quot;, $sec).&quot;.&quot;.($msec*1000000).&quot;.&quot;.$mail_from.&quot;&gt;&#92;r&#92;n&quot;;<br/>$TO = explode(&quot;,&quot;, $this-&gt;strip_comment($to));<br/><br/>if ($cc != &quot;&quot;) &#123;<br/>$TO = array_merge($TO, explode(&quot;,&quot;, $this-&gt;strip_comment($cc)));<br/>&#125;<br/><br/>if ($bcc != &quot;&quot;) &#123;<br/>$TO = array_merge($TO, explode(&quot;,&quot;, $this-&gt;strip_comment($bcc)));<br/>&#125;<br/><br/>$sent = TRUE;<br/>foreach ($TO as $rcpt_to) &#123;<br/>$rcpt_to = $this-&gt;get_address($rcpt_to);<br/>if (!$this-&gt;smtp_sockopen($rcpt_to)) &#123;<br/>$this-&gt;log_write(&quot;Error: Cannot send email to &quot;.$rcpt_to.&quot;&#92;n&quot;);<br/>$sent = FALSE;<br/>continue;<br/>&#125;<br/>if ($this-&gt;smtp_send($this-&gt;host_name, $mail_from, $rcpt_to, $header, $body)) &#123;<br/>$this-&gt;log_write(&quot;E-mail has been sent to &lt;&quot;.$rcpt_to.&quot;&gt;&#92;n&quot;);<br/>&#125; else &#123;<br/>$this-&gt;log_write(&quot;Error: Cannot send email to &lt;&quot;.$rcpt_to.&quot;&gt;&#92;n&quot;);<br/>$sent = FALSE;<br/>&#125;<br/>fclose($this-&gt;sock);<br/>$this-&gt;log_write(&quot;Disconnected from remote host&#92;n&quot;);<br/>&#125;<br/>//echo &quot;&lt;br&gt;&quot;;<br/>//echo $header;<br/>return $sent;<br/>&#125;<br/><br/>/* Private Functions */<br/><br/>function smtp_send($helo, $from, $to, $header, $body = &quot;&quot;)<br/>&#123;<br/>if (!$this-&gt;smtp_putcmd(&quot;HELO&quot;, $helo)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending HELO command&quot;);<br/>&#125;<br/>#auth<br/>if($this-&gt;auth)&#123;<br/>if (!$this-&gt;smtp_putcmd(&quot;AUTH LOGIN&quot;, base64_encode($this-&gt;user))) &#123;<br/>return $this-&gt;smtp_error(&quot;sending HELO command&quot;);<br/>&#125;<br/><br/>if (!$this-&gt;smtp_putcmd(&quot;&quot;, base64_encode($this-&gt;pass))) &#123;<br/>return $this-&gt;smtp_error(&quot;sending HELO command&quot;);<br/>&#125;<br/>&#125;<br/>#<br/>if (!$this-&gt;smtp_putcmd(&quot;MAIL&quot;, &quot;FROM:&lt;&quot;.$from.&quot;&gt;&quot;)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending MAIL FROM command&quot;);<br/>&#125;<br/><br/>if (!$this-&gt;smtp_putcmd(&quot;RCPT&quot;, &quot;TO:&lt;&quot;.$to.&quot;&gt;&quot;)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending RCPT TO command&quot;);<br/>&#125;<br/><br/>if (!$this-&gt;smtp_putcmd(&quot;DATA&quot;)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending DATA command&quot;);<br/>&#125;<br/><br/>if (!$this-&gt;smtp_message($header, $body)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending message&quot;);<br/>&#125;<br/><br/>if (!$this-&gt;smtp_eom()) &#123;<br/>return $this-&gt;smtp_error(&quot;sending &lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt; &#91;EOM&#93;&quot;);<br/>&#125;<br/><br/>if (!$this-&gt;smtp_putcmd(&quot;QUIT&quot;)) &#123;<br/>return $this-&gt;smtp_error(&quot;sending QUIT command&quot;);<br/>&#125;<br/><br/>return TRUE;<br/>&#125;<br/><br/>function smtp_sockopen($address)<br/>&#123;<br/>if ($this-&gt;relay_host == &quot;&quot;) &#123;<br/>return $this-&gt;smtp_sockopen_mx($address);<br/>&#125; else &#123;<br/>return $this-&gt;smtp_sockopen_relay();<br/>&#125;<br/>&#125;<br/><br/>function smtp_sockopen_relay()<br/>&#123;<br/>$this-&gt;log_write(&quot;Trying to &quot;.$this-&gt;relay_host.&quot;:&quot;.$this-&gt;smtp_port.&quot;&#92;n&quot;);<br/>$this-&gt;sock = @fsockopen($this-&gt;relay_host, $this-&gt;smtp_port, $errno, $errstr, $this-&gt;time_out);<br/>if (!($this-&gt;sock &amp;&amp; $this-&gt;smtp_ok())) &#123;<br/>$this-&gt;log_write(&quot;Error: Cannot connenct to relay host &quot;.$this-&gt;relay_host.&quot;&#92;n&quot;);<br/>$this-&gt;log_write(&quot;Error: &quot;.$errstr.&quot; (&quot;.$errno.&quot;)&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/>$this-&gt;log_write(&quot;Connected to relay host &quot;.$this-&gt;relay_host.&quot;&#92;n&quot;);<br/>return TRUE;;<br/>&#125;<br/><br/>function smtp_sockopen_mx($address)<br/>&#123;<br/>$domain = ereg_replace(&quot;^.+@(&#91;^@&#93;+)$&quot;, &quot;&#92;&#92;1&quot;, $address);<br/>if (!@getmxrr($domain, $MXHOSTS)) &#123;<br/>$this-&gt;log_write(&quot;Error: Cannot resolve MX &#92;&quot;&quot;.$domain.&quot;&#92;&quot;&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/>foreach ($MXHOSTS as $host) &#123;<br/>$this-&gt;log_write(&quot;Trying to &quot;.$host.&quot;:&quot;.$this-&gt;smtp_port.&quot;&#92;n&quot;);<br/>$this-&gt;sock = @fsockopen($host, $this-&gt;smtp_port, $errno, $errstr, $this-&gt;time_out);<br/>if (!($this-&gt;sock &amp;&amp; $this-&gt;smtp_ok())) &#123;<br/>$this-&gt;log_write(&quot;Warning: Cannot connect to mx host &quot;.$host.&quot;&#92;n&quot;);<br/>$this-&gt;log_write(&quot;Error: &quot;.$errstr.&quot; (&quot;.$errno.&quot;)&#92;n&quot;);<br/>continue;<br/>&#125;<br/>$this-&gt;log_write(&quot;Connected to mx host &quot;.$host.&quot;&#92;n&quot;);<br/>return TRUE;<br/>&#125;<br/>$this-&gt;log_write(&quot;Error: Cannot connect to any mx hosts (&quot;.implode(&quot;, &quot;, $MXHOSTS).&quot;)&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/><br/>function smtp_message($header, $body)<br/>&#123;<br/>fputs($this-&gt;sock, $header.&quot;&#92;r&#92;n&quot;.$body);<br/>$this-&gt;smtp_debug(&quot;&gt; &quot;.str_replace(&quot;&#92;r&#92;n&quot;, &quot;&#92;n&quot;.&quot;&gt; &quot;, $header.&quot;&#92;n&gt; &quot;.$body.&quot;&#92;n&gt; &quot;));<br/><br/>return TRUE;<br/>&#125;<br/><br/>function smtp_eom()<br/>&#123;<br/>fputs($this-&gt;sock, &quot;&#92;r&#92;n.&#92;r&#92;n&quot;);<br/>$this-&gt;smtp_debug(&quot;. &#91;EOM&#93;&#92;n&quot;);<br/><br/>return $this-&gt;smtp_ok();<br/>&#125;<br/><br/>function smtp_ok()<br/>&#123;<br/>$response = str_replace(&quot;&#92;r&#92;n&quot;, &quot;&quot;, fgets($this-&gt;sock, 512));<br/>$this-&gt;smtp_debug($response.&quot;&#92;n&quot;);<br/><br/>if (!ereg(&quot;^&#91;23&#93;&quot;, $response)) &#123;<br/>fputs($this-&gt;sock, &quot;QUIT&#92;r&#92;n&quot;);<br/>fgets($this-&gt;sock, 512);<br/>$this-&gt;log_write(&quot;Error: Remote host returned &#92;&quot;&quot;.$response.&quot;&#92;&quot;&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/>return TRUE;<br/>&#125;<br/><br/>function smtp_putcmd($cmd, $arg = &quot;&quot;)<br/>&#123;<br/>if ($arg != &quot;&quot;) &#123;<br/>if($cmd==&quot;&quot;) $cmd = $arg;<br/>else $cmd = $cmd.&quot; &quot;.$arg;<br/>&#125;<br/><br/>fputs($this-&gt;sock, $cmd.&quot;&#92;r&#92;n&quot;);<br/>$this-&gt;smtp_debug(&quot;&gt; &quot;.$cmd.&quot;&#92;n&quot;);<br/><br/>return $this-&gt;smtp_ok();<br/>&#125;<br/><br/>function smtp_error($string)<br/>&#123;<br/>$this-&gt;log_write(&quot;Error: Error occurred while &quot;.$string.&quot;.&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/><br/>function log_write($message)<br/>&#123;<br/>$this-&gt;smtp_debug($message);<br/><br/>if ($this-&gt;log_file == &quot;&quot;) &#123;<br/>return TRUE;<br/>&#125;<br/><br/>$message = date(&quot;M d H:i:s &quot;).get_current_user().&quot;&#91;&quot;.getmypid().&quot;&#93;: &quot;.$message;<br/>if (!@file_exists($this-&gt;log_file) &#124;&#124; !($fp = @fopen($this-&gt;log_file, &quot;a&quot;))) &#123;<br/>$this-&gt;smtp_debug(&quot;Warning: Cannot open log file &#92;&quot;&quot;.$this-&gt;log_file.&quot;&#92;&quot;&#92;n&quot;);<br/>return FALSE;<br/>&#125;<br/>flock($fp, LOCK_EX);<br/>fputs($fp, $message);<br/>fclose($fp);<br/><br/>return TRUE;<br/>&#125;<br/><br/>function strip_comment($address)<br/>&#123;<br/>$comment = &quot;&#92;&#92;(&#91;^()&#93;*&#92;&#92;)&quot;;<br/>while (ereg($comment, $address)) &#123;<br/>$address = ereg_replace($comment, &quot;&quot;, $address);<br/>&#125;<br/><br/>return $address;<br/>&#125;<br/><br/>function get_address($address)<br/>&#123;<br/>$address = ereg_replace(&quot;(&#91; &#92;t&#92;r&#92;n&#93;)+&quot;, &quot;&quot;, $address);<br/>$address = ereg_replace(&quot;^.*&lt;(.+)&gt;.*$&quot;, &quot;&#92;&#92;1&quot;, $address);<br/><br/>return $address;<br/>&#125;<br/><br/>function smtp_debug($message)<br/>&#123;<br/>if ($this-&gt;debug) &#123;<br/>//echo $message.&quot;&lt;br&gt;&quot;;<br/>&#125;<br/>&#125;<br/><br/>function get_attach_type($image_tag) &#123; //<br/><br/>$filedata = array();<br/><br/>$img_file_con=fopen($image_tag,&quot;r&quot;);<br/>unset($image_data);<br/>while ($tem_buffer=AddSlashes(fread($img_file_con,filesize($image_tag))))<br/>$image_data.=$tem_buffer;<br/>fclose($img_file_con);<br/><br/>$filedata&#91;&#039;context&#039;&#93; = $image_data;<br/>$filedata&#91;&#039;filename&#039;&#93;= basename($image_tag);<br/>$extension=substr($image_tag,strrpos($image_tag,&quot;.&quot;),strlen($image_tag)-strrpos($image_tag,&quot;.&quot;));<br/>switch($extension)&#123;<br/>case &quot;.gif&quot;:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;image/gif&quot;;<br/>break;<br/>case &quot;.gz&quot;:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;application/x-gzip&quot;;<br/>break;<br/>case &quot;.htm&quot;:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;text/html&quot;;<br/>break;<br/>case &quot;.html&quot;:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;text/html&quot;;<br/>break;<br/>case &quot;.jpg&quot;:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;image/jpeg&quot;;<br/>break;<br/>case &quot;.tar&quot;:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;application/x-tar&quot;;<br/>break;<br/>case &quot;.txt&quot;:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;text/plain&quot;;<br/>break;<br/>case &quot;.zip&quot;:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;application/zip&quot;;<br/>break;<br/>default:<br/>$filedata&#91;&#039;type&#039;&#93; = &quot;application/octet-stream&quot;;<br/>break;<br/>&#125;<br/><br/><br/>return $filedata;<br/>&#125;<br/><br/>&#125;<br/>?&gt;<br/><br/><br/>不要嫌长，拿来直接用就行，<br/><br/>第三个文件是提交过程文件sendmail.php<br/><br/>代码：<br/><br/><br/>&lt;?php<br/>header(&quot;Content-Type: text/html; charset=gb2312&quot;);<br/>require_once (&#039;email.class.php&#039;);<br/>//##########################################<br/>//$smtpserver = &quot;smtp.163.com&quot;;//SMTP服务器<br/>//$smtpserverport =25;//SMTP服务器端口<br/>//$smtpusermail = &quot;&quot;;//SMTP服务器的用户邮箱<br/>//$smtpemailto = &quot;&quot;;//发送给谁<br/>//$smtpuser = &quot;&quot;;//SMTP服务器的用户帐号<br/>//$smtppass = &quot;&quot;;//SMTP服务器的用户密码<br/>//$mailsubject = &quot;PHP100测试邮件系统&quot;;//邮件主题<br/>//$mailbody = &quot;&lt;h1&gt; 这是一个测试程序 PHP100.com &lt;/h1&gt;&quot;;//邮件内容<br/>//$mailtype = &quot;HTML&quot;;//邮件格式（HTML/TXT）,TXT为文本邮件<br/>##########################################<br/>$smtp = new smtp(&quot;smtp.qq.com&quot;,&quot;25&quot;,true,&quot;371381529&quot;,&quot;123456&quot;);//这里面的一个true是表示使用身份验证,否则不使用身份验证.<br/>$smtp-&gt;debug = true;//是否显示发送的调试信息<br/><br/>//$subject = $_REQUEST&#91;&#039;contact&#039;&#93;;<br/>$email = $_REQUEST&#91;&#039;email&#039;&#93;;<br/>$subject = $_REQUEST&#91;&#039;subject&#039;&#93;;<br/>$context = $_REQUEST&#91;&#039;context&#039;&#93;;<br/><br/>if(@mail(&quot;mail@php100.com&quot;,&quot;subject&quot;,&quot;content&quot;))<br/>&#123;echo &quot;mail()&quot;;<br/>&#125;<br/>else<br/>&#123;<br/>$smtp-&gt;sendmail(&quot;tpc@xx.com.cn&quot;, &quot;371381529@qq.com&quot;, $subject, $context.&quot;&lt;br/&gt;&quot;.$email,&quot;HTML&quot;);<br/>&#125;<br/><br/>?&gt;<br/>&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br/>alert(&quot;你的信息已经成功提交，谢谢!&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; window.location.href=&quot;contactus.htm&quot;; <br/>&lt;/script&gt;<br/><br/><br/>全部就是这些了，用起来很方便！<br/> <br/></div>
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/282.htm</link>
<title><![CDATA[php获得客户端ip的几种方法]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+技术文档{TD}]]></category>
<pubDate>Thu, 15 Jul 2010 01:12:14 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/282.htm</guid> 
<description>
<![CDATA[ 
	<div class="code">php获得客户端ip的几种方法 以下是一位网友总结的方法，整理得不错。只以getenv函数来判断有时会失效 <br/><br/>PHP Code one: &lt;? <br/>$iipp=$_SERVER&#91;&quot;REMOTE_ADDR&quot;&#93;; <br/>echo $iipp; <br/>?&gt; <br/><br/>PHP Code two: <br/>&lt;?php <br/>$user_IP = ($_SERVER&#91;&quot;HTTP_VIA&quot;&#93;) ? $_SERVER&#91;&quot;HTTP_X_FORWARDED_FOR&quot;&#93; : $_SERVER&#91;&quot;REMOTE_ADDR&quot;&#93;; <br/>$user_IP = ($user_IP) ? $user_IP : $_SERVER&#91;&quot;REMOTE_ADDR&quot;&#93;; <br/><br/>echo $user_IP; <br/>?&gt; <br/><br/>/////////////////////////////////////////////// <br/><br/>&lt;? <br/>function get_real_ip()&#123; <br/>$ip=false; <br/>if(!empty($_SERVER&#91;&quot;HTTP_CLIENT_IP&quot;&#93;))&#123; <br/>$ip = $_SERVER&#91;&quot;HTTP_CLIENT_IP&quot;&#93;; <br/>&#125; <br/>if (!empty($_SERVER&#91;&#039;HTTP_X_FORWARDED_FOR&#039;&#93;)) &#123; <br/>$ips = explode (&quot;, &quot;, $_SERVER&#91;&#039;HTTP_X_FORWARDED_FOR&#039;&#93;); <br/>if ($ip) &#123; array_unshift($ips, $ip); $ip = FALSE; &#125; <br/>for ($i = 0; $i &lt; count($ips); $i++) &#123; <br/>if (!eregi (&quot;^(10&#124;172&#92;.16&#124;192&#92;.168)&#92;.&quot;, $ips&#91;$i&#93;)) &#123; <br/>$ip = $ips&#91;$i&#93;; <br/>break; <br/>&#125; <br/>&#125; <br/>&#125; <br/>return ($ip ? $ip : $_SERVER&#91;&#039;REMOTE_ADDR&#039;&#93;); <br/>&#125; <br/><br/>echo get_real_ip(); <br/>?&gt; <br/><br/>PHP Code three: <br/>&lt;? <br/>//php获取ip的算法 <br/>if ($HTTP_SERVER_VARS&#91;&quot;HTTP_X_FORWARDED_FOR&quot;&#93;) <br/>&#123; <br/>$ip = $HTTP_SERVER_VARS&#91;&quot;HTTP_X_FORWARDED_FOR&quot;&#93;; <br/>&#125; <br/>elseif ($HTTP_SERVER_VARS&#91;&quot;HTTP_CLIENT_IP&quot;&#93;) <br/>&#123; <br/>$ip = $HTTP_SERVER_VARS&#91;&quot;HTTP_CLIENT_IP&quot;&#93;; <br/>&#125; <br/>elseif ($HTTP_SERVER_VARS&#91;&quot;REMOTE_ADDR&quot;&#93;) <br/>&#123; <br/>$ip = $HTTP_SERVER_VARS&#91;&quot;REMOTE_ADDR&quot;&#93;; <br/>&#125; <br/>elseif (getenv(&quot;HTTP_X_FORWARDED_FOR&quot;)) <br/>&#123; <br/>$ip = getenv(&quot;HTTP_X_FORWARDED_FOR&quot;); <br/>&#125; <br/>elseif (getenv(&quot;HTTP_CLIENT_IP&quot;)) <br/>&#123; <br/>$ip = getenv(&quot;HTTP_CLIENT_IP&quot;); <br/>&#125; <br/>elseif (getenv(&quot;REMOTE_ADDR&quot;)) <br/>&#123; <br/>$ip = getenv(&quot;REMOTE_ADDR&quot;); <br/>&#125; <br/>else <br/>&#123; <br/>$ip = &quot;Unknown&quot;; <br/>&#125; <br/>echo &quot;你的IP:&quot;.$ip ; <br/>?&gt; <br/><br/>PHP Code four: <br/>&lt;? <br/>if(getenv(&#039;HTTP_CLIENT_IP&#039;)) &#123; <br/>$onlineip = getenv(&#039;HTTP_CLIENT_IP&#039;); <br/>&#125; elseif(getenv(&#039;HTTP_X_FORWARDED_FOR&#039;)) &#123; <br/>$onlineip = getenv(&#039;HTTP_X_FORWARDED_FOR&#039;); <br/>&#125; elseif(getenv(&#039;REMOTE_ADDR&#039;)) &#123; <br/>$onlineip = getenv(&#039;REMOTE_ADDR&#039;); <br/>&#125; else &#123; <br/>$onlineip = $HTTP_SERVER_VARS&#91;&#039;REMOTE_ADDR&#039;&#93;; <br/>&#125; <br/>echo $onlineip; <br/>?&gt; <br/><br/></div>
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/281.htm</link>
<title><![CDATA[今天在家给儿子洗澡N80拍的]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+偶的日记{Logs}]]></category>
<pubDate>Thu, 24 Jun 2010 07:36:33 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/281.htm</guid> 
<description>
<![CDATA[ 
	今天在家给儿子洗澡N80拍的<br />&nbsp;<img class="insertimage" src="attachment.php?fid=137" border="0" width="640" height="480" /><br /><br /><img class="insertimage" src="attachment.php?fid=138" border="0" width="640" height="480" /><br /><br /><img class="insertimage" src="attachment.php?fid=139" border="0" width="360" height="480" />
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/279.htm</link>
<title><![CDATA[我下周一就要开始工作了]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+偶的日记{Logs}]]></category>
<pubDate>Wed, 23 Jun 2010 02:29:35 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/279.htm</guid> 
<description>
<![CDATA[ 
	下周一就要开工了，还是我的老本行，我会努力工作，让家人过的好一点！至于宝宝由妈妈和奶奶照顾你，当然，我下班后也会照顾你的，帅宝宝要快快长大，等你长大了我带你首都北京看看，因为你老爸还没去过呢。。。
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/278.htm</link>
<title><![CDATA[帅帅满月就会吃自己的小手了]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[-孕育专题]]></category>
<pubDate>Wed, 23 Jun 2010 02:25:04 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/278.htm</guid> 
<description>
<![CDATA[ 
	帅帅满月就会吃自己的小手了，我听朋友们说他们的宝宝要2个月才开始学吃手，呵呵，我宝宝很超前啊！找了篇文章写的很详细，给大家看看：宝贝吃手有原因 <br /><br />宝贝需要吸吮。刚出生的宝宝对吸吮有一种天生的需要，如果吸吮没有得到满足，他就会想办法自己满足自己&mdash;&mdash;吸吮手指，这是一种替代和安慰。 <br /><br />吃手是宝宝对爱的呼唤。爸爸妈妈或看护人很少和宝宝肌肤相亲，很少陪宝宝说话、做游戏，宝宝饥饿、患病时不能得到及时的抚慰，吃手是宝宝的一种自慰方法，其中多少有些无奈。 <br /><br />吃手是宝宝排遣压力的方法。如果宝宝的生活环境、看护人经常更换，或爸爸妈妈对宝宝要求过严，经常训斥打骂宝宝，家庭关系紧张等等，在较大心理压力下，宝宝会通过吃手来排遣内心的压力。 <br /><br />吃手是宝宝对抗孤单寂寞的方法。现在的家庭一般都是一个宝贝，孩子不免孤单，如果孩子常独自在家里玩玩具、看电视，接触不到同龄的伙伴和新鲜事物，不免会感到寂寞，孤独和乏味，孩子会用吃手来排遣孤单和寂寞。 <br /><br />妈妈爸爸的态度强化&mdash;&mdash;宝宝吃手。当宝宝紧张焦虑时、饥饿时、无聊时或模仿其他孩子偶尔吃手时，爸爸妈妈见了，严厉训斥，令宝宝更紧张，反而强化了宝宝吃手。也有的妈妈爸爸对宝宝吃手看之任之，不及时找原因，进行矫治，让吃手成为一种固癖。<br /><br />但是刚两个月的宝宝吃手一定要预防，因为会对牙床造成影响。<br /><br />应对吃手有对策 <br /><br />1．让宝贝享受吮吸的快乐。妈妈要尽可能用母乳喂养宝贝，让他充分享受吮吸的快乐。如果要断奶，要及时添加辅食和配方奶，逐渐过渡，让宝宝有一个适应过程，切忌突然断奶，让宝宝感到焦虑和没有安全感。 <br /><br />2．多陪陪宝宝。爸爸妈妈要多搂抱、多陪伴宝宝，仔细分辨宝宝的各种要求，满足他的各种需要，有条件的妈妈可以为宝宝做抚触按摩，睡前给宝宝讲轻松愉快的故事，读朗朗上口的儿歌，让宝宝愉快地入睡，时时感到安全、幸福、满足。 <br /><br />3．给小嘴找个依靠。当宝宝吃手时，妈妈可以给宝宝一块磨牙饼干，让他的小嘴啃啃，或来个安慰奶嘴或磨牙棒替换一下小手。（提示：安慰奶嘴和磨牙棒要注意清洁和消毒。）<br /><br />厌恶疗法 在宝宝经常吸吮的手指头上抹黄连素等无毒的苦味剂，或缠上纱布，让宝宝吸吮时产生厌恶感，减少或消除这种不良行为。 <br /><br />负性疗法 让宝宝在一段时间里反复不停地吸吮手指，直到他感到不舒服、不愉快为止，促使他慢慢改掉这种习惯。 <br /><br />孩子出生时，口腔内没有牙齿，出生后约6个月，下颌中切牙开始萌出，直到2岁半乳牙全部萌出。宝宝出生后1年内(1.5个月～11个月)所有乳牙釉质矿化完成,出生后2年内(6个月～24个月)所有乳牙萌出。因此，出生后1年内，如果孩子出现全身或局部紊乱疾病，将影响乳牙釉质的发育，导致牙齿发育缺陷，易患龋齿。<br /><br />在宝宝长牙齿时，宝宝会觉得牙齿很痒，相信那是就是宝宝吃手的习惯的养成期，应该给宝宝全麦饼干啃。 
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/277.htm</link>
<title><![CDATA[我使用诺基亚N80的一些感受]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+偶的日记{Logs}]]></category>
<pubDate>Tue, 22 Jun 2010 06:51:56 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/277.htm</guid> 
<description>
<![CDATA[ 
	多普达小5坏掉了，前段时间买了台黑色诺基亚N80花芬兰版的。这机器缺点机身太厚，设计的没有创意。屏幕2.1寸实在太小了，屏的色彩和象素真是好的无话可说，看文字和图片都很清晰。前面板上的中间导航键不好用，点向上的时间很不舒服。下面的键还是很好用的包括数字键区，按钮很大很舒服。左侧MINISD卡槽设计很好，右侧的拍照按钮就垃圾的很，不使劲是不起作用的。。。电源按钮在顶部设计，很好，不容易误操作。机器下面的耳机和数据线插槽垃圾，插拔线时很费事。。。我插上去往下拔整好大一会儿。还好这款有挂绳设计，我之前的多普达小5就没有，这点比较强。这款机器是上划盖设计，往上推时很费劲，不是那种半自动手推式的，很僵硬，手感不行。这款手机音响音量还算可以，但开到70-80音量时，明显有杂音。系统使用是S60还算可以吧，暂时装了一些常用软件。最后说说自带的摄像头！这摄像头不是一般的垃圾，还称320万带九纹闪光灯，真是缩水厉害，拍出来的照片能有100万就很不错了，使用的镜头太次，还有个20倍数码变焦，这么破COMS还什么数码变焦，如果用了那照片还能看么？还有就不能添加点成本整个卡尔.蔡司镜头啊？？？夜间模式就不多说了，一会儿看我的图。。自动对焦也去掉了。。。我买这个机器就相中了它的WIFI无线接入和收音机功能。。。。。。呵呵，希望以上对大家有用! <p></p><p><span style="font-size: x-small"><span style="color: #000000">上2张我拍的照片给大家看吧。。。汗<br /><img class="insertimage" src="attachment.php?fid=128" border="0" width="640" height="480" /><br /><img class="insertimage" src="attachment.php?fid=129" border="0" width="360" height="480" /><br /><br /><img class="insertimage" src="attachment.php?fid=130" border="0" width="360" height="480" /><br /><br /><img class="insertimage" src="attachment.php?fid=132" border="0" width="1536" height="2048" /><br /><br /><img class="insertimage" src="attachment.php?fid=133" border="0" width="2048" height="1536" /><br /><img class="insertimage" src="attachment.php?fid=134" border="0" width="1536" height="2048" /><br /><img class="insertimage" src="attachment.php?fid=135" border="0" width="960" height="1280" /><br /><br /><img class="insertimage" src="attachment.php?fid=136" border="0" width="960" height="1280" /><br /><br /></span></span></p>
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/276.htm</link>
<title><![CDATA[微星k9n neo v2V3刷主板BIOS（附刷新工具及BIOS文件）]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+技术文档{TD}]]></category>
<pubDate>Mon, 21 Jun 2010 01:11:40 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/276.htm</guid> 
<description>
<![CDATA[ 
	我K9NV3的，金邦内存2根 667的，CPU4000+ 超频还是很快的，我的BIOS版本是2.6 之前是2.1，也可以刷到2.9 ，最新的。用DOS盘启动,载入NTFS 把BIOS文件放到你的硬盘根目录 ，然后在DOS符输入 AFUD408空格A7369NMS.260空格 杠P 空格 杠B 空格 杠N 空格 杠C 回车 有超频不懂的也可以问我，我的QQ 12123420&nbsp; 有空我会再写一篇关于如何超频设置的文章的，呵呵 <br /><br />以下是下载文件，自己下！<br /><br /><a href="attachment.php?fid=126">点击这里下载文件</a><br /><br /><a href="attachment.php?fid=127">点击这里下载文件</a>
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/275.htm</link>
<title><![CDATA[给大家推荐个我常去的淘宝导购平台-金皇冠]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+杂七杂八]]></category>
<pubDate>Mon, 21 Jun 2010 00:41:28 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/275.htm</guid> 
<description>
<![CDATA[ 
	<p>金皇冠导购网<a href="http://www.ainixp.com/" target="_blank"><a href="http://www.ainixp.com" target="_blank">www.ainixp.com</a></a> -淘宝客常去的地方、淘友贴切的导购平台；淘宝网商城-最全面的淘宝导购平台，为买家搜集淘宝网畅销商品、皇冠店铺，商品数量丰富，分类齐全，可按销量、信誉、价格排序，从而使你快速找到适合自己的淘宝商品。</p>
]]>
</description>
</item><item>
<link>http://www.dosxp.com/read.php/274.htm</link>
<title><![CDATA[PHP转HTML工具简单自动生成方法 （2种方法）]]></title> 
<author>ainisp &lt;admin@yourname.com&gt;</author>
<category><![CDATA[+技术文档{TD}]]></category>
<pubDate>Sun, 20 Jun 2010 11:20:49 +0000</pubDate> 
<guid>http://www.dosxp.com/read.php/274.htm</guid> 
<description>
<![CDATA[ 
	<div class="code">PHP转HTML工具简单自动生成方法一： $s_fname = &amp;quot;http://www.dosxp.com/index.php&amp;quot;; ///是用户主页 $o_fname = &amp;quot;index.html&amp;quot;; ///转后的文件 ob_end_clean(); //清理缓存 ob_start(); //开缓存 include($s_fname); $length = ob_get_length(); $buffer = ob_get_contents(); $buffer = eregi_replace(&amp;quot;r&amp;quot;,&amp;quot;r&amp;quot;,$buffer); ob_end_clean(); $fp = fopen($o_fname,&amp;quot;w+&amp;quot;); fwrite($fp,$buffer); fclose($fp); ///关闭 PHP转HTML工具简单自动生成方法二： &lt;!--p&nbsp;&nbsp; //php5&nbsp;&nbsp; $str&nbsp;&nbsp; =&nbsp;&nbsp; file_get_contents( &quot;http://ainixp.com/&quot;);&nbsp;&nbsp; file_put_contents( &quot;index.html&quot;,&nbsp;&nbsp; $str);&nbsp;&nbsp;--&gt;</div>还不懂请加QQ12123420 转请注明出处<a href="/"><a href="http://www.dosxp.com" target="_blank">www.dosxp.com</a></a> 
]]>
</description>
</item>
</channel>
</rss>