Home  >  Article  >  Backend Development  >  Sending email using Socket 5_PHP tutorial

Sending email using Socket 5_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:27:591058browse

Show debugging information
1 function show_debug($message, $inout)
2 {
3 if ($this-$#@62;debug)
4 {
5 if($inout ==="in") //Response information
6 {
7 $m="$#@60;$#@60;,;
8 }
9 else
10 $ m="$#@62;$#@62; ,;
11 if(!ereg(" $", $message))
12 $message .= "$#@60;br$#@62;";
13 $message=nl2br($message);
14 echo "$# @60;font color=#999999$#@62;${m}${message}$#@60;/font$#@62;";
15 }
16 }
This function Used to display debugging information. You can specify whether it is an upload instruction or a returned response in $inout. If it is an upload instruction, use "out"; if it is a returned response, use "in". Line 3. Determine whether to output debugging information.
In line 5, determine whether it is response information. If so, add "$#@60;$#@60;" in front of the information in line 7 to distinguish the information; otherwise Add "$#@62;$#@62;" on line 10 to distinguish the upload command.
Lines 11-12 determine whether the last line of the information string is a newline character. If not, add an HTML newline mark. Line 13 converts all line breaks into HTML line breaks. Line 14 outputs the entire message and sets the color of the message to gray to indicate the difference.

http://www.bkjia.com/PHPjc/531801.html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531801.htmlTechArticleShow debugging information 1 function show_debug($message, $inout) 2 { 3 if ($this-$#@ 62;debug) 4 { 5 if($inout=="in") //Response information 6 { 7 $m="$#@60;$#@60;,; 8 } 9 else 10 $m="$ #@62;$#@62...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn