Is_null, empty, isset, unset Let's take a look at the descriptions of these 4 functions first.
Isset determine if a variable already exists (configuration)unset to remove (release) a variableEmpty determine if the variable is emptyIs_null determine
talk about the difference between mysql_connect and Mysql_pconnect, these two function usage is similar, on the net has said should use Pconnect, pconnect is a good thing, also has the view pconnect like the scourge, resolutely does not let use
APC Definition: APC is an open and free php opcode cache. Its goal is to provide a free, open and robust framework for caching and optimizing PHP intermediate code.
APC Common functions:
1.apc_clear_cache () Clear APC cache
First type
Want to traverse the entire two-dimensional array with foreach ():
$team = Array (' lk ', ' OK ');
$book = Array (' Linux server Configuration and Management ', $team);
foreach ($book as $k => $val)//for $book each $value (AS)
This article illustrates how PHP uses the file header to determine the format. Share to everyone for your reference, specific as follows:
function Judgefile ($file, $form) {
if (!empty ($file) &&!empty ($form)) {
$filehead = fopen ($file, '
Program one: Responsible for the random extraction of data from the dictionary, write a new file. (1.php)
Copy Code code as follows:
* * Extract the random value from the dictionary file.
$file 1 = "./words.dic";
$file 2 =
"^the": matches a string that starts with "the";
"Of despair$": matches a string ending with "of despair";
"^abc$": matches a string that begins with ABC and ends with ABC, and is actually only matched by ABC;
"Notice": matches a string
such as: name|s:4: "Tasm";p asswd|s:6: "111111"; mode|s:1: "1", also know the location of the session stored, and can upload files, so, then did a small hacker, online friends password can be glance, Oh:
?
function Submit1 () {
Global
What is an operator
What is an operator? Operators are identifiers that tell PHP to do related operations. For example, you need to calculate 123 times 456 equals how much, this time you need a symbol, tell the server, you need to do multiplication.
Scripts are often dead and not always good-looking. We don't want to show the user a fatal error, or a blank page (when Display_errors is set to OFF). There is a function called Register_shutdown_function in PHP that allows us to set up another
Personal opinion of the reasons for the impact:Matching to the picture URL is not a valid URL, the text is simply to determine whether the relative path, but some URLs are invalidSolution: Add a picture that determines whether the URL is real or
This example for you to share the PHP image upload class for your reference, the specific content as follows
Call Method:
get_ph_tmpname ($_files[' photo '] [' tmp_name ']);
$up->get_ph_type ($_files[' photo '] [' type ']);
$up->get_ph_size
This example for you to share a few common PHP SMS interface code, for your reference, the specific content as follows
1. SMS Call class
' Http://www.jb51.net/v1/send.json ', ' send_batch ' => ' http://www.)
Jb51.net/v1/send_batch.json ',
The examples in this article describe how people and their distances are implemented in a PHP query. Share to everyone for your reference, specific as follows:
array (' lat ' => $lat + $dlat, ' LNG ' => $lng-$dlng), ' Right-top ' =>array ('
To understand the two concepts of PHP Dependency Injection and control reversal, you must be aware of the following issues:
Di--dependency Injection Dependency Injection
Ioc--inversion of Control inversion
1, who are the participants?
A : There
This article illustrates a simple way to count the number of people online in PHP. Share to everyone for your reference, specific as follows:
Time ()) {
Array_push ($temp, $entry [0]. ",". $ ENTRY[1]. " \ n "); Remove the other viewer's
Copy Code code as follows:
/**
* Function: Pagination class
* Author: phpox
* Time: Sat 18:15:02 CST 2007
*/
Defined (' phpox ') or Die (header ("http/1.1 403 Not Forbidden"));
Class page{
Public $infocount;
Public $pagecount;
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