First, modify the Apache port
1, select Apache in the interface, Pop-up hidden menu options, open the configuration file httpd.conf;
2. Find
Listen;
3, change 80 to 8080 (of course, you can also set other
first, error and exception handling
1.1 Error types and basic debugging methods?? Error occurrences of PHP programs are generally attributed to the following three areas:
?? Syntax error:?? Syntax errors are most common and easy to fix. such as: A
Draw conclusions from Classname::functionnmae (), instantiation, parent, self
Classname::functionnmae () requires a static method (public mode)
Parent::functionnmae () parent class needs to be static method (public, protected two
Now we have developed many applications that rely on AJAX requests, and in some cases, even all of them rely on Ajax. Sometimes we notice that when a Web page sends two or more AJAX requests, the response time of PHP is very long and the response
about the Bind method:
- The two bindings are the same, and when $app->make () returns a new instance
$this->app->bind (' App\dao\userdao ', function () { return new Userdaoimpl (); }); $this->app->bind ('
A "correction mode" is a matching pattern for a regular expression, similar to a phone's mode (family mode, conferencing mode, and so on):
These include the following:
"Greedy match"-refers to the result when the result of the match is ambiguous
First of all, say something zmq, it's ZEROMQ's initials.
What is ZMQ?This is a socket similar to a series of interfaces, he and the socket is the difference between: the ordinary socket is end-to-end (1:1 relationship), and ZMQ is can be n:m
0x00 Preface
The domestic public PHP automation audit technical data is relatively small, in contrast, there has been a relatively good automated audit implementation, such as Rips is based on the token stream as a basis for a series of code
Rsync Remote shell Incremental synchronization data
Rsync synchronizes files in two ways, one is daemon (rsync daemon) and the other is via remote shell (rsync remote shell).
The difference between the two ways
The Daemon method, which
Laravel deployed in Nginx always appears nginx 403 Forbidden
If it is not a permission issue, it is not an issue with the index file. That is, the Laravel's home directory was specified incorrectly. The root directory of the Laravel program cannot
Long time no blog, in my difficult times, can always find some articles from the online Daniel wrote, solve my problem. Before because of things, are as a request, and then there is time, I will try to write more blog, I encountered the solution of
Accustomed to the use of PHP and MySQL combination, now received the project needs to call the customer offline system software data, with the understanding that the software database is used SQL Server database is often said MSSQL database.
Then
PDO has a function Pdostatement::rowcount returns the number of rows affected by the previous SQL statement.The ROWCOUNT function is correct for a delete, INSERT, or UPDATE statement, but is related to the implementation of the database for the
#定义Nginx运行的用户和用户组user www www;
#nginx进程数, the recommended setting is equal to the total CPU core number.Worker_processes 8;
#全局错误日志定义类型, [Debug | info | notice | warn | error | crit]Error_log/var/log/nginx/error.log
This guide gives a basic introduction to Nginx and describes some simple tasks, the can is done with it. It is supposed this nginx is already installed on the reader's machine. If It isn't, see the Installing Nginx page. This guide describes how to
In https://pecl.php.net/find the extension source you want to download,
Here is an example of a mongodb extension.
Download the MongoDB database driver source code in Https://pecl.php.net/package/mongo. Then compile the installation.
wget -c
Problem: in C + +, I'm used to initializing arrays with memset functions, such as:
int sz = 100;int *a = (int*) malloc (sizeof (int) * SZ); memset (A,0,sizeof (a));
The above code dynamically opens an int array A, the size is SZ, and the open
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