In the development of this paging function is certainly indispensable, today we share a very useful and simple PHP paging function implementation code, the need for friends can refer to.
The code is as follows
Copy Code
/**
Collection of fine Code
1. oncontextmenu= "window.event.return& #118alue =false" will completely shield the right mouse button
No
Available for table
2.Deselect, prevent copying
3. onpaste= "return false" no paste
4. oncopy=
A code of the implementation of the string of all the pictures to be taken out, the need for a friend can be a simple reference.
The code is as follows
Copy Code
Preg_match_all ('/
http://www.bkjia.com/PHPjc/631
This article introduces a practical function, if we use PHP substr to intercept characters in Chinese processing is very problematic, today I wrote a better Chinese and English character interception function, the need for friends can refer to.
Upload principle is very simple is to use the form to open the ID name of the IFRAME, so you can be in the current page of the IFRAME, to achieve file upload, and then use JS to return the upload results.
No refresh upload file
PHP
Class upload{
/**
* The Name property of the HTML form input field, default to ' file '
*/
var $file _field = ' file ';
/**
* $_files Array
*/
var $file _array;
/**
* Save path, default to current path
*/
var $save _path = ";
/*
Provide an automatic cookie login method, the user can choose to save the process during login days and months, we just came in the page to judge the KO.
The code is as follows
Copy Code
Login
-------------
This is a very simple program using PHP file_get_contents function to collect Baidu data, and then through the simplexml_load_string to parse it out, so that the data is saved to an array, we can easily use.
The code is as follows
PHP Tutorial implements URL static
PHP implements pseudo-static
Another is pseudo-static mode, that is, users and search engines see the. html suffix of the static page, but in fact it is a dynamic program, but in some way disguised.
There are two
provides two PHP intercept string function, they can automatically recognize the Chinese Oh, if you are intercepting the article this is very good ah, like to come in and see it.
provides two PHP tutorials to intercept string functions, they can
Chat Room A lot of programs can be implemented, the principle is simple as long as a no refresh can be achieved, the simplest is to use an IFRAME constantly refresh the page to read the user's records from the database.
MySQL is a powerful database
Untitled
Set a cookie anywhere on the page
if (! $show) {$username = "liubing";Jssetcookie ("username", "liubing", 1);echo "
The cookie username is set to $username";echo "Valid for 1 minutes" ;echo "Try Cookiee has no effect";}else{echo "
The
There are many JavaScript-written calendars on the web that read local time and may not be accurate. So I want to find a PHP written in, can read the server time of the calendar, but have been unable to find the appropriate, so I myself try to write
Let's build the injection statement.
In the input box, enter
a% and 1=2 Union select 1,username,3,4,5,6,7,8, password,10,11 from
alphaauthor# into the SQL statement.
SELECT * from alphadb where title like%a% and 1=2 Union Select
1,username,3,4,5,6,7,
This article introduces a more useful article about PHP to do the station search and Highlight keywords, this many friends directly use Preg_replace to operate, this is correct oh, but I think with str_replace faster oh. As for the reasons, check
This article introduces this PHP page class support next page, next page, home page and so on all the pagination to have all, there is a need for students can refer to the next ha.
The code is as follows
Copy Code
/*
PHP script Execution time limit, default is 30m solution: Set_time_limit (), or modify php.ini settings max_execution_time time (not recommended)
Using PHP to make the browser refresh requires several issues to solveIf the client browser shuts down,
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