PHP is actually a module function of the Web server. Therefore, you must first ensure the security of the Web server. Of course, to ensure the security of Web servers, you must first ensure system security.
I. Web server security
PHP is actually a
The following functions are my summary over the years. Some of them are constantly summed up at work, and some are collected through some network routines. I hope these functions will be helpful to you, thank you!
'Custom formatdatetime function
Chr (13) is a carriage return; Chr (10) is a line break; chr (32) is a space character; chr (13) is a carriage return; 9 \ 34 is a tab, not sure?
(Example: replace all carriage returns with
# Replace (foo, Chr (13), "", "ALL ")#
)
All tables
AS create text box_ Root. createTextField ("mytext", 1, 50, 50,100, 20 );Mytext. multilance = false; // you can specify a single row;Mytext. text = "this is a text box" // value assignmentThen delete the created text box:Mytext. removeTextField (); /
A new exciting feature of Microsoft Office 2000 is that it provides Office Web Components (OWC, an ActiveX control group used to create dynamic Web documents ). OWC includes six controls, which implement some Excel functions and provide database
**************************************** ***************************
'Get the IP address
'*************************************** ****************************
Function userip ()
Dim getclientip
'If the client uses a proxy server, use the
Copy codeThe Code is as follows: '====================================
'Function Description: Remove HTML tags with regular expressions
'You cannot retain and other custom
'====================================
Function RemoveHTMLTag (fString)Dim
The special split functions you have written are as follows:Create or replace function FN_SPLIT_STR_2 (var_str in varchar2) return varchar2/*There is a table t1 with a field named c3, which stores the location information of all stores.Now we need a
Characters corresponding to the ASCII code value and ascii characters
Chr (9) tab space chr (10) newline chr (13) carriage return Chr (13) & chr (10) carriage return newline chr (32) space character chr (34) double quotation marks chr (39) single
# Title = Common ASP syntax and functions# InfoSome common syntaxes and user-defined functions of ASP# Sort = N
# T = ASP common syntax =# T ==================================# T = database-related# T = connect to the Access DatabaseDim dbname,
'Function name: createkeyword
'Usage: generate a keyword from a given string
'Parameter: constr --- the original string to generate the keyword
'Return value: generated keyword
'*************************************** ***********
Function
CopyCode The Code is as follows:
Dim Param, smiles 'Param is the fully available mark of the UBB label. Param = Full is fully available. Otherwise, smiles, a label with a large footprint, is not supported.Function ubbcode (content)Dim N, I'On error
On this basis, this article adds some functions that are suitable for Chinese websites. Some functions may not be added yet. If you are interested, you can add a function on this basis, but don't forget to share it!
Class stringoperations
'**********
The two page index.htm is the home page. The program is relatively simple, mainly using files in ASP to operate objects.
Http://www.w3.org/TR/html4/loose.dtd> untitled document
send messages
'// Send. aspFunction chan_time (Shijian)
From the foreigners to find, made some changes, the original address: http://www.vbaexpress.com/kb/getarticle.php? Kb_id = 506
Option
Explicit
Public
Sub Locationtable ()
'
This routine will create a text file of the location and
How to read XML from a file
This example illustrates how to use the xmltextreader class to read XML from a file. This class provides direct analysis and tagging of XML, and implements W3C Extensible Markup Language (XML) 1.0 and namespace
'*************************************** ***********
'Function name: CreateKeyWord
'Usage: generate a keyword from a given string
'Parameter: Constr --- the original string to generate the keyword
'Return value: generated keyword
'*******************
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.