DAT files, information about IP-corresponding regions
Qqwry.dat file
Download yourself Online
class file, parsing the Qqwry.data file
iplocation.php File
Copy CodeThe code is as follows:
Class Iplocation {
/**
* @var Resource Hands
*/
Private $fp;
Generally we are in accordance with the file extension to determine the file type, but this is very unreliable, easily by modifying the extension to avoid, it is generally necessary to read the file information to identify, PHP extension provides
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 Strtok () function can control the rhythm relative to explode (). Cut strings on demand. The advantages are:
1. You can define multiple separators at once. When the function is executed, it is cut by a single delimiter rather than by the entire
Regular expressions are cumbersome, but powerful, learned applications will give you an absolute sense of accomplishment in addition to improving efficiency. It is not a problem to master regular expressions, as long as you read them carefully, add
friends who have used the SAE platform should know that, for platform security reasons, the SAE limits the user's use of the local IO. However, for some of the traditional PHP projects, it may bring a lot of inconvenience, because they are more or
Reading an array
$arr =array ("xx" = "fork", "yy" = "crooked");
echo "reads the first:". $arr [Number of xx];//statistics array
$array =array (AAA,BBB,CCC,DDD);
echo "Number of arrays:". Count ($array). " n "; Computes the number of array cells or
PHP Array is still more commonly used, so I studied the PHP array assignment, here to take out and share with you, hope to be useful to everyone. An array is a set of variables that are stored in the computer's memory, which can be of different
PHP album system source code/* This is a simple PHP album system, including the following files conn.php database connection file and file upload function and paging function vc.php used to display the album files.php photo upload file index.php
In many projects will ask users to upload things these, since the contact with jquery and Ajax no matter what to do, first of all will think of this, I this person? is to pay more attention to customer experience, this time I am responsible for the
PHP Kanji Conversion Pinyin and pinyin conversion of Chinese character program This is a pinyin and Chinese character conversion code, you can convert Chinese characters into Pinyin can also be converted in turn.
PHP tutorial Kanji Conversion Pinyin
Some of the information is often constant, but still can change the information in the cache to speed up the display speed, which is very valuable, so-called cache, popular understanding is some saved on the server side of the common information. It
To put it simply
Memcache is the total cache system project name and is easy to confuse with Memcache in PHP tutorials.
We often mention that memcache is actually PHP's memcache, which is PHP's memcached extension support.
We often mention that
This article introduces the application examples of the application of the automatic loading class object serialization polymorphism in the object oriented in PHP, and the students who need to know can look at it.
Auto Load ClassMany developers
Excelfileparser processing Excel to get data for bulk import into the database
Submit Form
Excel Data Capture Demo
Excel Data Capture Demo
Submit Processing[PHP]
/*** CopyRight (c) 2009,* All rights reserved.FileNameSummary** @author
PHP parsing JSON Data Two examples of methods
Most popular Web services like Twitter, which provides data through open APIs, always know how to parse the various delivery formats for API data, including Json,xml, and so on.
$json _string= ' {"id": 1
MySQL is more and more used in database applications because of its small size and efficient operation. I used MySQL to save the peer node when I was working on a peer application, and because of the tens of thousands of nodes in the application,
Master PHP read and write cookie execution time and efficiency issues, understand PHP read-write cookie on the performance of the impact, and in the actual development of reasonable use of PHP read and write cookies, analysis tools using Pear
PHP Getting Started Tutorial:
stripos Example Tutorial
Definition and usageThe Stripos () function returns the position where the first occurrence of the string begins.
If the string is not found, this feature returns FALSE.
Stripos
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.