void header (String $string [, bool $replace = true [, int $http _response_code]]): Send a raw HTTP header
Here are several uses of header:
1, use header function to jump page;
Header (' Location: '. $url);
Where $url is the URL that will
There are times when you are working on a file that needs to be processed in batches in a directory, this time we need to find all the eligible files in the directory and save them to a result set, and then make it easy to batch, usually by saving
(O゜▽゜) o☆[bingo!]
OK, let's see what the cookie is first.
Cookies are small files that the server leaves on the client to identify the user or store some data (note that the session is stored on the server side, which is one of the differences).
Some people think that Linux is very complex to build PHP environment, and then try to install LNMP one-click installation package. In fact, is to install a Web server, and then support PHP can be, very simple, compared to the installation of LNMP
Look at the POP3/SMTP protocol when you want to try to write a class, the core is nothing, is the use of fsockopen, and then write/Receive data, only to achieve the most core part of the function, as a learning Socket operation of the practicing. It
"^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
Fread: Computes the length in byte bits, reads the data at the specified length and number, stops after it encounters the end or completes the specified length read.
Fgets: Full row reads, encounters carriage return or end stop. Used in text
The Creates the fileutil.php file, and the content and how it is invoked are as follows:
Another way to call:
$fu = new Fileutil ();
$fu->copyfile (' A/1/2/3 ', ' A/1/2/4 ');
The above is a small set to introduce PHP files
We tend to do a variety of optimizations on the server for caching settings, but we rarely notice
Client Cache, which is exactly the caching mechanism of the browser.
In fact, each browser has a caching policy, will temporarily cache each of the
php5.3 Self-belt PHP-FPM/usr/local/php/etc/php-fpm.confPID = Run/php-fpm.pidPID settings, default in the installation directory of the Var/run/php-fpm.pid, recommended to open
Error_log = Log/php-fpm.logError log, default Var/log/php-fpm.log in the
The infinite classification is a kind of data structure often used in the actual development, we call it the tree structure generally.
title: Similar to Taobao commodity classification, you can set its subclasses in any category.
First, create '
This article describes the PHP to achieve the calculation of Baidu map coordinates the distance between the method. Share to everyone for your reference, specific as follows:
The following is the code on the Web, you need to make some changes when
This article describes a simple way to create a calendar in PHP. Share to everyone for your reference, specific as follows:
";
$calendar. = " $monthName $year ";
$calendar. = ""; Create the Calendar headers foreach ($daysOfWeek as $day)
This is what I found on the Internet PHP to achieve Level three Cascade dropdown box of information, share a everyone, we progress together, the specific content as follows
index.php:
ajax linkage menu class {$arr [] Name "]} EOD;
3. Delete Member Del.php3
?
Require ("common.php3");
$id =chop ($id);
if (!isset ($id)) error ("Please enter the user ID to be deleted!") ");
ElseIf ($pwd <> $adminpass) error ("Admin password Error! ");
else{
$data =dbmopen ("Class",
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
This article illustrates a simple way to implement multiple language switching in PHP. Share to everyone for your reference, specific as follows:
1. Main program code:
$value) {if ($_session["language"] = = $value) {$selected = ' selected
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