/*
Author:nick
Function: Generate Selettree
Property:
$result result set
$id _field Self ID field
$parent _field The parent class ID field
$option _text Option Display Name
$select the name of the _name
PHP defends against XSS attacks, using methods and details to see http://www.tongqiong.com/read.php?tid-474.html
function Remove_xss ($val) {
Remove all non-printable characters. CR (0a) and LF (0b) and TAB (9) are allowed
This
Infinite classification, from the database query data recursively in the array to customize the sorting, it is also aware of a lot of shortcomings, bad treatment, there may be a better way, we exchange more than 100 lines. Not fully released
You can drop it in the background, easy code reading.
File Browsing Program
error_reporting (0);
$pwd = Empty ($_get[' dir ')? './': $_get[' dir ';
$pwd = Realpath ($PWD);
if (Is_file ($pwd)) {
$mysql _server_name= ' 127.0.0.1 '; Change to your MySQL database server
$mysql _username= ' user '; Change to your MySQL database user name
$mysql _password= ' password '; Change to your MySQL database password
$mysql _database= '
PHP gets the specified number of cell contents of the specified array in a random arrayI can show it randomly in a local apmserv 5.2.6 environment, but when I upload to American space, it shows the number 5, not random. How should I change my advice?
I wrote a script to calculate the time of the page execution .the execution time is displayed in the upper right corner of the pageThe advantage is that you just have to do it at the beginning.
$t = new Executetime;
Programmer: For the current design, I can fix the basic framework in about a week. We then refine and refine the design from scratch and submit a stable version in the next week. The project manager understands that the whole project can be done in
/**
Class for paging a query
@link http://bbs.it-home.org
*/
Class Paging
{
Private $pageSize; The number of bars displayed on a page is 10 by default.
Private $totlePage; How many records are there in total?
identify the "Baidu weight" cheating method Programmers in the PHP project at the same time, also have to identify Baidu weight of cheating, the so-called "Baidu Weight", refers to the Love station, webmaster tools and other sites launched on the
This lottery applet, in the actual test environment can also be used, for example, the test data query in the in condition, to query the random 5 ID, and then use AB to pressure test
!--? php
/**
* "lottery"
You can use it when you do the collection.
/*
Parsing JS code functions
JS code such as:
var pp_link= "/videos/41939vod-play-id-41939-(PPVOD). html"; var pp_vodname= "chills";
Parse Output:
Array (
[Pp_
No details >
!--? php
class Record
{
var $pf;
Public Function r_start ($file = ' record ')
{
ob_start ();
echo "____________________________________________\n";
http://blog.ddian.cn/?post=869
/**
* Check whether the user name is in accordance with the rules (two characters or more, only Chinese, letters, numbers, underline)
*
* @param STRING $username The user name to
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service