The fixed characters are usually maintained on the web. config. however, because PM proposes to modify the online source and web. config requires a very annoying signature, but it is free to modify the database. for future maintenance convenience,
1. jsp
Code :
Copy code The Code is as follows: Document: Index
Created on:, 12:45:43
Author: Lucifer
-- %>
Http://www.w3.org/TR/html4/loose.dtd>
JSP page
Get scheme:
Get protocol:
Get remote address:
Get Remote Host:
Get Server
Algorithm:
Concatenate the string in reverse order after the first string, and then obtain the longest public prefix ..
# Include # include # include # include # include # include # include # include # include # include using namespace STD;
1.JSP Code:
Copy Code code as follows:
Document:application
Created on:2009-10-4, 13:18:53
Author:lucifer
--%>
"Http://www.w3.org/TR/html4/loose.dtd" >
jsp page
Get Server Info:
Get context Path:
1. JSP code:Copy codeThe Code is as follows:Document: ApplicationCreated on:, 13:18:53Author: lucifer-- %>Http://www.w3.org/TR/html4/loose.dtd> JSP Page Get Server Info:Get Context Path:Get Real Path: 2. Output:Copy codeThe Code is as follows:Get
Comparison of Ajax return strings
JScript Code
if (xmlhttp.readystate==4&&xmlhttp.status==200) { var a=xmlhttp.responsetext; A=a.replace (/\r\n/g, ""); var b= "Success"; if (a!=b) { document.getElementById
Question
Reference self blog: http://blog.csdn.net/u011498819/article/details/38356675
Question: Find the number of such sub-return strings (not necessarily consecutive, but there is a sequence from left to right.
The simple interval DP,
Note that the space complexity is optimized. The first 49776 K of the scrolling array is not used, and the last 188 K is used. This is the difference !!!
Transfer equation:
If (STR [I] = STR [J])DP [I] [J] = DP [I-1] [J-1];ElseDP [I] [J] = 1 + min
1.JSP Code:
Copy Code code as follows:
Document:index
Created on:2009-10-4, 12:45:43
Author:lucifer
--%>
"Http://www.w3.org/TR/html4/loose.dtd" >
jsp page
Get Scheme:
Get Protocol:
Get Remote Address:
is not the first time to do the payment interface development, each do the payment interface development will actually encounter some trouble. The main place is in the verification (signature) section.
The function of the verification is to
Common functions extracted from phpcmsv9 *** return the strings or arrays processed by addslashes * @ param $ string or strings to be processed * @ returnmixed * functionnew_addslashes ($ string) {?? If (! Is_array ($ string) returnaddslashes ($
Common functions extracted from Phpcms v9
/*** Returns a string or array that has been processed by addslashes* @param $string string or array to be processed* @return Mixed*/function New_addslashes ($string) {? ? if (!is_array ($string)) return
Logutils Print Log Tool classThis is a print Log tool class that is extracted from the XUTILS3. This kind of print log is more detailed, you can print the class name, method name .isDebugFor the print log switch, the initialization can be used
System. Object. tostring () is probably the most common method in. net. We should provide a reasonable version for all the customer code of our class. Otherwise, these code can only use some attributes of our class to customize the readable
Capture
Capture is a mechanism in which part of the pattern string can be used to match part of the target string. Enclose the pattern you want to capture in parentheses and specify a capture.When string. Find uses capture, the function returns the
The class that gets the URL information
Using this class, you can obtain the following information about the URL:
-Host
-Path
-Statuscode (eg. 404,200, ...)
-HTTP Version
-Server
-Content Type
-Date
-the whole header string of the URL
Copy
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.