Today encountered an error is IIS 500 error, because the server is responsible for, view log nothing unusual, found in the task log found there is a time interval is not recorded, at first do not know why, after the log is all 500 errors, in the IIS
View Log tail/var/log/nginx/error.log, prompting "primary script unknown while reading response headers from upstream"
View the configuration Files section of this virtual host as follows:
Location ~ \.php {#fastcgi_pass
PHP 5.4 has a built-in Web server that is handy for native development because you no longer have to install Web server software like Apache, you can launch PHP's Web server directly from the command line.
The startup method is simple, enter the
After configuring Nginx, when accessing Tomcat, Tomcat displays such as:
From this state can be seen, guess is CSS and JS these files are not loaded.
In addition, access to the pages deployed on the Tomcat project is the same, with different
Zhou Haihan/Wen
ADO can be used with new COM ("ADODB. Connection ", NULL, Cp_utf8)//65001 Such statements to achieve the correct conversion. However, ADO lacks documentation for PHP support. And there is an open source ADODB, the document is richer.
Little Brother Beginner PHP, made up a message board program, self-feeling good, so thick cheek put up, please the eldest brother correct. The source program is as follows:
File name: guest.php
Settings section
$guestfile = "Guest";//The text file
One: Directory operations
The first introduction is a function read from the directory, Opendir (), Readdir (), Closedir (), using the file handle is opened first, and then the iteration is listed:
Copy CodeThe code is as follows:
$base _dir =
I think so:
Iterate through multidimensional arrays and create a one-dimensional array by indexing all the keys;
Each time through the key name to check the parent array and data
OK, the code is as follows
Indexkey Creating an indexed array function:
I believe that you choose a language, not to see its background and a long history, more important is to see its practicality, flashy language even if it is a glorious history, and will step to the decline, it is gratifying that PHP has withstood
PHP provides us with a large number of functions to get the day of the week, we commonly use the date () function, let me introduce the date of the week to get a specific instance.
PHP date () parameter description
Here the main use of the W this
MAC address is the network card address is generally unable to get to the user's MAC address, because the security restrictions on the browser so it is almost impossible to obtain, the following two pieces of code for everyone to play.
Example 1
PHP
Summary: When we write a program, it is always unavoidable to make mistakes, no matter how cautious. These errors often confuse the PHP compiler. If developers are unable to understand the meaning of compiler error messages, they are not only
PHP Learning Notes (ii) Learn basic PHP syntax and directory structure, learn the basic grammar of notes
Through this class,
1. Understanding the APPSERV directory structure
2. We can understand the basic syntax structure of PHP
1 My Appserv
How do I prevent SQL injection in PHP? , PHP how SQL injection
Problem Description:
If the data entered by the user is inserted into an SQL query statement without processing, then the application is likely to suffer a SQL injection attack, as in
PHP automatically add a link to the URL method, the php URL link method
The example in this article describes how PHP automatically adds links to URLs. Share to everyone for your reference. The implementation method is as follows:
This
PHP combined with jquery to retrieve the password, phpjquery retrieve the password
Usually the password retrieval function is not really able to retrieve the forgotten password, because our password is encrypted, the general developer will verify
Win7 System configuration Php+apache+mysql environment method, Win7mysql
b/S architecture is very popular now, because B/s architecture has many advantages, such as: Users only need to have a browser to use, maintenance upgrades are more convenient,
Yii removes the asterisk from the required fields, and the asterisk in the Yii mandatory fields
This example describes how Yii removes asterisks from required fields. Share to everyone for your reference, as follows:
How do I get rid of the
PHP kernel learning tutorial PHP opcode kernel implementation, kernel opcode
OpCode is a part of the computer directive that specifies the action to be performed, and the format and specification of the instruction is specified by the directive
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