In PHP development, I often use timeout processing to timeout. I will talk about several scenarios, it is convenient for users who need to work in PHP development to use timeout handling to timeout. I will talk about several scenarios:
1.
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
Php security configuration records and common errors (Summary), common php errors
After the php environment is deployed, some security settings are made. In addition to being familiar with various php vulnerabilities, you can also configure php. ini
After the php environment is deployed, some security settings are made. in addition to being familiar with various php vulnerabilities, you can also configure php. ini to reinforce the runtime environment of PHP, and PHP has been officially modified
Highly recommended: php. ini Chinese version (2 ). Track_varsOn; make $ HTTP _ * _ VARS [] array valid. here * is used in use; ENV, POST, GET, COOKIEorSERVER replaces post_max_size8M; PHP will accept the maximum size of POST data. Gpc _ track_vars =
A few days ago, I saw a blog post saying that the server where php is located frequently creates TCP short connections in the case of high concurrency, And the 2MSL time of the server where php is located is too long, resulting in no port available,
Strongly recommended: php. ini Chinese version (2) track_vars = On; make $ HTTP _ * _ VARS [] array valid, here * used in use
; ENV, POST, GET, COOKIE or SERVER replacement
Post_max_size = 8 M; PHP will accept the maximum size of POST
2 php test filesServer. php
Copy codeThe Code is as follows: // Phpinfo ();
// Ensure that no timeout occurs when you connect to the client
Set_time_limit (0 );
$ Ip = '1970. 0.0.1 ';
$ Port = 1935;
/*
+ -------------------------------
* @ Socket:
Compiling the source package requires./configure then compile a. so fileOne less error packetInstall packageNormal displayThe LS directory has a./configure fileQuerying module LocationsEditing a configuration fileEditing a configuration fileIncrease
;;;;;;;;;;;;;;;;;;;;;;;;; Dynamic scaling ;; dynamicExtensions; if you want an extension library to be automatically loaded, use the following syntax :; extensionmodulename. extension; for example, in windows, extensionmsql. dll; or in UNIX;
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.