In this chapter, I will provide a very useful page update code in CMS. You can modify any paragraph by clicking the mouse. Click the button to display the modified text. Example
This page is an example. Click a paragraph, edit it, and click Ready.
How to Use .html () in jquery (),. text () and. val () is used to read and modify the html structure of an element, the text content of an element, and the value of a form element. This section describes how to use .html () in jquery (),. text ()
Using ThinkPHP3.2.2, I read a line of code like this in a file: {code...} 1) Is this section {| (w +)} wrong? Curly braces {}, separator | isn't it regular? But it runs normally. $ Rule value example: {code...} 2) he intended to read a line of code
A simple phpCalender (calendar) solves the 2038 problem, which can be used on both 32-bit and 64-bit machines. the code is very simple and easy to modify.
Note that the 32-bit server has 2038 problems, so the 32-bit server's validity period ranges
"PHP Public Platform Development Series"
01. Configure the interface02. Public Platform Sample Code analysis03. Subscription event (SUBSCRIBE) processing04. Simple Reply Function development05.API Weather forecast Function development
This address:
Use: Incoming a URL, such as http://jb51.net/article/1.html, return 1, the Representative has been included; return 0, on behalf of Baidu is not included.
Copy the Code code as follows:
Header ("content-type:text/html; Charset=utf-8 ");
function
We have already introduced a class for sending Group emails. The function of this class can only send text emails. The following class features are very powerful, not only can send html emails, you can also send attachments.
// If you want to
The old driver will show you the jQuery plug-in development process and the jquery plug-in process
Jquery plug-in Development Mode
Jquery plug-ins generally have three development methods:
Use $. extend () to extend jQuery
Add a new method to
CopyCode The Code is as follows: Class email {
// --- Set global variables
VaR $ mailto = ""; // recipient
VaR $ mailcc = ""; // CC
VaR $ mailbcc = ""; // Private CC
VaR $ mailfrom = ""; // sender
VaR $ mailsubject = ""; // topic
VaR $ mailtext = "";
Imitating jquey and creating several package nodes, we found that jquery is inefficient. Next time, he could say how much these methods can be improved. The principle is basically like this. If strings are input, convert them into an element node.
1. knowledge point:
Use Java to implement simple HTTP Server
Use of serversocket and socket classes
Use of the stringtokenizer class
Multi-thread
2. Source Code:
ImportJava. Io. bufferedreader;
ImportJava. Io. fileinputstream;
ImportJava. Io.
PHP -- the following functions are very powerful: not only html-format emails can be sent, but also attachments can be sent.
Usage:
Copy codeThe Code is as follows: Include "email. class"
$ Mail-> setTo ("a@a.com"); // recipient$ Mail-> setCC ("B @
Upload the file email. php and emailclass. php to the same directory, and create a subdirectory temp under this directory. set the permission to 0777, and execute email. php to send an email. This emailclass. php function is already quite complete. 1
This type of function is very powerful, not only can send html format emails, but also can send attachments Note: When the author published it, it changed 《《? PhpclassEmail {--- set the global variable var $ mailTo; recipient var $ mailCC; CC var $
In app development, we often embed a map to show a specific location, such as a map to show a specific location. Take Shanghai Xujiahui as an example, as shown in:If we open it directly using the browser, refer to
Class Email {
---setting global variables
var $mailTo = ""; Recipient
var $mailCC = ""; Cc
var $mailBCC = ""; Secret CC
var $mailFrom = ""; Sender
var $mailSubject = ""; Theme
var $mailText = ""; Text-Formatted letter body
var $mailHTML = "";
Very useful php prevents SQL injection vulnerability filtering function code
// PHP full-site anti-injection program, which must be included in the public file require_once
// Determine the magic_quotes_gpc
PHP class-fully functional mail class, read PHP class-fully functional mail class, PHP class-a full-featured mail class we have already introduced a class for group Mail, which can only send text emails, which of the following functions is very
The functions of this class are very powerful Today. they can not only send html emails, but also send attachments.
The functions of this class are very powerful Today. they can not only send html emails, but also send attachments.
The
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.