Function code:
Copy CodeThe code is as follows:
PHP Batch filter Post,get sensitive data
if (GET_MAGIC_QUOTES_GPC ()) {
$_get = Stripslashes_array ($_get);
$_post = Stripslashes_array ($_post);
}
Function Stripslashes_array (& $array) {
while (list
PHP Filters HTML strings, prevents SQL injection, and uses functions to filter out illegal information, as well as malicious HTML code, by using a string that will be written to the database.
Code:
PHP Batch filter Post,get sensitive dataif
The bulk collect clause will batch retrieve the results, that is, bind the result set to a collection variable at a time, and send the results from the SQL engine to the PL/SQL engine. Generally,Use bulk collect in the fetch into and returning into
################## Dynamically generate an Excel table, write the content together ######################%> Generate an Excel file using ASP (after debugging and modification, you can write the custom display content of the Excel title) Generate an
Recently, dedecms reported bugs. here we will share with you the php filter function. let's see how to use the function code:
The code is as follows:
// Php batch filter post and get sensitive dataIf (get_magic_quotes_gpc ()){$ _ GET =
Php filters all malicious characters (batch filters post and get sensitive data ). Function Code: Copy the code as follows: php batch filter post, get sensitive data if (get_magic_quotes_gpc () {$ _ GETstripslashes_array ($ _ GET ); $ _
Function Code:Copy codeThe Code is as follows:// Php batch filter post and get sensitive dataIf (get_magic_quotes_gpc ()){$ _ GET = stripslashes_array ($ _ GET );$ _ POST = stripslashes_array ($ _ POST );}Function stripslashes_array (& $ array
This article summarizes almost all possible PHP anti-SQL Injection code.
Determine the XP_CMDSHELL executable status
WEB virtual directory discovered
Upload ASP, php, and jsp Trojans;
Obtain the Administrator permission;
// PHP full-site
Determine xp_cmdshell performance
Discovery Web Virtual Directory
Upload asp,php,jsp Trojan;
Get administrator privileges;
PHP Whole station Anti-injection program, need to require_once the document in the public fileJudge the state of
Another method for importing Excel spreadsheet data to the sqlsever Database
Last time, I provided you with a method to import data from an Excel spreadsheet to an SQL Server database,
? Php/*** generate the smarttemplate template processing framework *** the smarttemplate template class has a high efficiency and the code size is very large.
/**
* Generate the processing framework of the smarttemplate template.
*
* The
'=================================================' Process name: removehtml (StrText)' Function: Place HTML' Parameter: StrText: Action Object'=================================================Public Function removehtml (strText)Dim RegEx
Set RegEx
Program | template /**
* Generate Smarttemplate Template handler framework
*
* The Smarttemplate template class is extremely efficient and has a small code size.
* His extensible template function is unique.
*
* Although there are only a few methods,
/*** Generate Smarttemplate Template handler framework** The Smarttemplate template class is extremely efficient and has a small code size.* His extensible template function is unique.** Although there are only a few methods, it is easy to use.* But
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.