Today found logs mass 400 error
The http1.1 standard specifies that the request must contain header information, and if the request header is empty then Web server returns 400 in detail and can see RFC 2316, section 14.23
In addition to the above-
after installation of Nginx, the corresponding installation directory will be generated, according to the previous installation path, nginx configuration file path is/opt/nginx/conf, where nginx.conf is the main configuration file nginx. The
Here is my JS code:
var page = require('webpage').create();var address = 'http://baidu.com';//填写需要打印的文件位置var output = './img/'+'xigua'+'.png';//存储文件路径和名称page.viewportSize = { width: 100, height: 100 };//设置长宽page.open(address, function (status) {
Single-letter functions D, F, S, C, L, A, I they are defined in the thinkphp core thinkphp/mode/api/functions.php this file.
Let me explain their functions separately:
D () Load model class
M () Load model class
A () Load action class
L () Get the
I want to implement the upload file selection zip file, via AJAX to the background php file, PHP file can be used $_files to obtain the file, but do not know how to implement.
Try to save the zip file by using the following method instead of
This problem is usually caused by an incorrect path to the Fastcgi_script_name access script.
Especially with subdirectories, for example, for YII frameworks, the path is usually project/web
Then if you access/project/index.php in the URL, then
Today's Mission:
1.XCAP Development, XML export
Actual:
Sorting using array operations
Harvest:
1. Operation of arrays
2.php reflection mechanism--reflectionclass, you can get properties and methods in a class
Model object:
$r = Reflectionclass
The recent server PHP version has been upgraded to 5.6 and found a lot of warnings .
Preg_replace (): the/e modifier is deprecated, use preg_replace_callback instead
At first did not pay attention, and later found a lot of such warnings, so the
This article is a little bit of rain original, declined reprint
Objective
After the basic configuration, we can run the PHP environment directly on Nginx, then the next step is to do some of the following operations
Configuring the NIC
Since the
First, use Phpinfo () to view the PHP version
My computer shows the result: PHP 5.6 32-bit.
Second, download the corresponding version of the Php-redis module,
Put the downloaded Php_redis.dll, php_igbinary.dll into the Xampp/php/ext,
Modify the
The visitor pattern is actually the pattern that allows the external class to get the object of each node of the tree structure, manipulating each object, which allows us to extend functionality without altering the original tree structure, such as
Deploying a PHP test environment on an Ubuntu machineFirst, the deployment environmentUBUNTU11.10_X86_32, compile and install the appropriate software: nginx+mysql+php.Second, software Installation2.1 Software DownloadsLibiconv-1.14.tar.gzLibmcrypt-2
Today I saw a dependency management tool that introduced PHP, so we learned to try it out:
Environment: Win7
First, installation
1. Verify that PHP is enabled with the OpenSSL module (using HTTPS URLs);
Modify environment variable path, join
The mysql_query () function executes a MySQL query.
The syntax is as follows:mysql_query (query,connection);The parameter query is required, which specifies the SQL query to send.The parameter connection is optional, it specifies the SQL
view Apache logs and notice the following warning:
PHP warning:php startup:unable to load dynamic library ' E:\\php-apache2410\\php-5.2.17-win32-vc6-x86\\ext\\php_pdo_ Mysql.dll '-\xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\
Recently in the use of PHP to write an enterprise-class CMS, the background needs to use PHP to get the current server details and related system parameters information, collation, and now posted here for later use.
Get system type and version
1 Add the following script to/etc/init.d/nginx
and modify the following two behavior of their own nginx corresponding directory
nginx= "/opt/nginx/sbin/nginx"Nginx_conf_file= "/opt/nginx/conf/nginx.conf"
#!/bin/sh## nginx-this script starts and
Lambda
A lambda expression, also called closure (closure), is also called an anonymous function. Because of its strength, almost supported by all the mainstream development languages, this article attempts to list the sample code for lambda
all the analysis instructions use the text using light red, small fourth number in italics.
index.php
MediaWiki program entry
This is the main web entry point for MediaWiki.
Now start to look at the first code of the program, determine whether the
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