This article describes how to filter html strings in php and prevent SQL injection. For more information, see
Batch filter post and get sensitive data
The code is as follows:
$ _ GET = stripslashes_array ($ _ GET );$ _ POST = stripslashes_array ($ _
A PHP-implemented UBB class! & Nbsp; & lt ;? Php & nbsp;/* & nbsp; If you have reprinted it, please indicate the author
/*
If any reprint is found, please indicate the author
Author: He Zhiqiang
File: ubb. php
Note: it is an improvement. In fact,
/*
If reproduced, please indicate the author
Original Author: he Zhiqiang
Improvement: sonymusic[Sonymusic@163.net]
Files: ubb.php
Note: Say is improved, in fact, the core function parse () has been completely rewritten, and the idea is not the same.
The html string filtering function in php. The custom function code is as follows: functionStripHTML ($ string) {$ patternarray (script [^] *?. *? Scriptsi, style [^] *?. *? Stylesi, [!] *? [^] *? Si, ([rn]) [s] +, (quot | #34); I. A UDF.
Runstats is a script developed by Thomas Kyte that compares the two different methods of doing the same thing to get a better result.1. AuthorizationSelect On v_$statname to Livan; Grant succeeded. SQLSelect on v_$mystat to Livan; Grant succeeded.
To get the last modification time of the generated HTML file, write a function with simple judgment.
Instance: 2005-11-10 19:33:44 ASP file 6.83 KB
Save the following file as a mofei. asp file and run it. You need FSO support.
Function
In general, for the character passed in, PHP tutorial can be processed with the Addslashes function once (to GET_MAGIC_QUOTES_GPC () for the fake before processing, otherwise it will be escaped again! ), so that a certain level of safety
This is a simple security filtering function that converts HTML conversion characters into text that can be displayed.
Function HtmlDecode (restring)Dim str:str=restringIf not IsNull (STR) Thenstr = Replace (str, "", "&")str = Replace (str, ">",
recently DEDECMS reported vulnerabilities, here to share the filter function of PHP, Daniel floated over bar, to the small black wide to learn exchange with Function code: Code as follows://php bulk filter Post,get sensitive data if (GET_MAGIC_
The idea of a Hyper script virus
Farewell to the past love of the limelight, love the era of bragging, learn some real skills is the hard truth. Study hard and make progress every day. Here's the idea for a hyper-scripting virus.
Scripting viruses
First, bbed tools
Installation of 1.BBED
Oracle 11g missing bbed package, oracle11g bbed Install and example
1. Upload (SBBDPT.O ssbbded.o BBEDUS.MSB, the three files copy the linux64 version of Oracle) files
$ORACLE
Generally, for the incoming characters, PHP can be processed with the Addslashes function (to GET_MAGIC_QUOTES_GPC () to deal with the false, or repeat the escape! ), so as to achieve a certain level of security requirementsLike this.
strSourceFile = Server.MapPath ("./") & "List.xml"' Get the path to the XML file, which is different depending on your virtual directory.Set objxml = Server.CreateObject ("Microsoft.FreeThreadedXMLDOM")' Create an XML pair as a free
server 1, ASP files:
' EXAMPLE as: Put a 24-hour online number in the database into an Excel file
' AUTHOR: Steel Workers
' Email:hello_hhb@21cn.com
' Date:2001-3-25
' Test: Testing through in Nt4,sp6,sql SERVER 7.0,excel2000
%>
Generate
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.