In nginx.conf, both Client_header_buffer_size and large_client_header_buffers are adjusted to alleviate this problem.
The main configuration is client_header_buffer_size this, the default is 1k, so the header is less than 1k will not be the
In PHP, there are two basic output methods: Echo and Print
The difference between Echo and print:
echo--can output more than one string, no return value
print--can only output one string, and always return a value of 1
Echo's statement:
Manage your message in the text file implementation is not as convenient as the database, below we want to achieve this effect!
In the output when we are using an array to save the data, then we will be very convenient for each set of data in order
Although the base database of the guestbook can be made very beautiful, but also better management. But for those who do not have database space, the text-based guest book can also be completed for personal use. And as long as we work hard to do the
1. About Array_search and unset
Original code:
Public Function Appviewunread ($uid, $id) { $userNewRepyKey = config_cachekey::user_question_new_reply. $uid; $userNewReply = $this->appgetusernewreply ($uid); $key =
1:explode Split string
eg
$str = XXX:ABC;
$ABC = Explode (': ', ' $str '); Obtained is an array of
echo $ABC [1]; Output ABC
Cons: Must know the split point, and the location of the required data
Advantages: Good understanding
2:str_replace
Characteristics:
Support OICQ Avatar, automatic pagination, display message person ip,email legality verification, convenient and safe message management,
Without complex functions, beginners are easy to read.
program Example:
1. Open the include conf/extra/httpd-vhosts.conf in httpd.conf
2. Modify the C:\wamp64\bin\apache\apache2.4.17\conf\extra\httpd-vhost.conf and add the following
ServerAdmin project.com documentroot "C:\wamp64\www\project"
There is a problem with an array queue, the array length is fixed, and when an element is inserted into the input, the array auto-header begins to overwrite the fill after the maximum length is exceeded.
At this point, the entire array is formed
use PHP to generate a single HTML document for the article data in the database. First, to facilitate the inclusion of search engines. Second, it is more secure to avoid exposing fields in the database to the Address bar.
give the code:
Set up a virtual domain name
1. Modify the Hosts file, directory: C:\Windows\System32\drivers\etc, add, example
localhost doma.com
2. Modify the httpd.conf file
allowoverride None Require all deniedFor
#AllowOverride None
Replace characters with the most efficient and simplest character substitution functions in PHP tutorial
str_replace($arr1,$arr2,$str)Example one:
str_replace("iwind", "kiki", "i love iwind, iwind said");
The output " i love kiki, kiki said
POST. PHP publishes the subject page, and the posted information is submitted to okey.php for processing.
Forum post
Include "linkfox.inc.php";
Include "info.inc.php";
?>
$tem = $HTTP _cookie_vars[flyfoxnet]; Take cookie
PHP4 and PHP3 some incompatible places, but this is mainly PHP4 in the php.ini
There are some differences in the settings, these changes are mainly to improve the efficiency of PHP4.
Among the changes, the Track_vars settings are usually made to
PHP Example Anatomy: Counter
Author: Sucre_tiger
This counter with text count, no database, can achieve the following functions:
Count multiple pages with a single text file reduce server I/O occupancy in files that need to be recorded, only a few
by Vikram Vaswani
Melonfire
November 07, 2000
Now, we have been exposed to PHP a large number of FTP functions, but this is only a function, far from our goal is not enough, to show the true power of these functions, we should establish a program,
PHP4 a new session support than PHP3. A little bit, for its function interface, the internal mechanism,
A general understanding of the convenience of the application.
The meaning of the session everyone should be aware that a session can include a
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