Win7 the configuration of Nginx and PHP
1. installation package Preparation
Nginx:? Download Nginx-1.8.0.zip from nginx.org
PHP: Download php-5.6.10-win32-vc11-x64.zip from Php.net, PHP is free to install files.
Runhiddenconsole: For hiding
PHP errors and exceptions notes and summaries (18) page redirection implementation
Redirects the user to another page when an error occurs.
1
Php2 Header(' content-type:text/html; Charset=utf-8 ');3 4 classexceptionredirecthandler{5 6
How to use regular match phone number after 8 bit cannot be the same number?
How to use regular match phone number after 8 bit cannot be the same number?
Currently I have a regular expression that matches the phone number/^1[3,5,8,7]\d{9}$/needs to
$.post (' index.php?act=q&openid=
', {' QNumber ': qnumber},functi
$.post (' index.php?act=q&openid=
', {' QNumber ': qnumber},function (data) {}, ' json '), where is index.php the current page? or the page that submitted the JSON?
------to
Nginx+thinkphp solution does not support the PathInfo mode and the existence of a variety of 404,500 issues
Nginx environmental problems for two days, found online a lot of people's posts are either copied or pasted, or there is no knot paste, but
2.PHP How to log errors and send errors
1. Log the error to the specified file and configure the process as follows* 1). Log_errors=on* 2). Error_log=/tmp/php_error.log1. Log error logs using the Error_log () functionError_log (' error
In WordPress, PHP calls and MYSQ calls L which is faster
Wordpress
You want to invoke the corresponding picture according to the category ID
PHP words, want to write a case Judgment statement to invoke
or write a MySQL value, and then write a
What is the efficiency of a PHP function whose parameters are passed and referenced by value?
Pass by value
Function ABC ($t) {$c = $t;}
Reference delivery
Function ABC (& $t) {$c = $t;}
I assign a long article to the variable $t, and then loop 100,
See PHP Handbook 2015-03-19 version Reserve note
Basic concepts of classes and objects:1,#############################:: ClassSince PHP 5.5, keyword class can also be used to parse the class name. With Classname::class you can get a string that
installation of the lamp environment under UBUNTU14 and the installation of YAF expansion
In the previous period, the lamp environment was installed under Ubuntu, recording the installation process for easy access later.
Install lamp Environment
①
NetBeans cannot debug PHP code and cannot run at all.
Waste my time, download time, installation time, trial time, I hate you!!
------to solve the idea----------------------
NetBeans is good. An IDE debug word output variable echo,print_r
PHP with notes 3
[a-z]*/# excluded characters [^]# [^a-za-z] except for characters other than the # # qualifier (? *+{n,m})/*? Match the preceding character 0 times or once colo?r can match colour color+ match the preceding character once or
PHP Performance analysis tool xhprof installation use tutorial
Hprof is an open source PHP lightweight performance analysis tool for Facebook, similar to Xdebug, but with lower performance overhead, can also be used in production environments or
PHP generates a large number of HTML files, how to avoid memory exceeding
Ob_start ();Require ' xxx.php ';$temp = Ob_get_contents ();Ob_end_clean ();$fp = fopen ($path, ' w ');Fwrite ($fp, $temp);Fclose ($FP);
I'm now going to generate 10,000
PHP Execute cmd command
How to execute the following system commands in PHP:
D:\matlab\r2012a\bin>matlab-r Matrixcompute
I tried using the following code:
Header ("content-type:text/html; Charset=utf-8 "); Set file Encoding formatEcho ("Open
It's not a contradiction, huh?
Defined (' Think_path ') or exit ();
My understanding is: If Think_path is defined, it executes, or exits.
So the question is, if the definition is true, does he perform or retreat, because this is the or relationship.
Sending a file to the client via PHP in a streaming manner
Previously, under ASP, similar functions were implemented through BASP21. Now the PHP version is organized here.
There are several possible requirements that can be achieved through the
QQ Consulting How to use a balanced distribution to customer service
Now a lot of web pages are used QQ Consulting, users click on QQ Consulting can and customer service QQ communication.
The front-end code is as follows:
If there are many QQ
How to stitch other elements in a PHP array if one element is the same
For example, the original array is like this
Array (3) {
[0] = = Array (6) {
["pla_id"] = + string (3) "298"
["user_id"] = + string (1) "1"
["due_in"] = + string (15) "8.33"
}
[1]
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