The PHP version is upgraded today, and by the way, the MySQL connection in PHP code is changed to Mysqli, since the official php5.3 has been recommending Mysqli and PDO since the beginning of the day. No more talking, sticker code.
// here's a
Favicon.ico Introduction
Favicon.ico is a thing, maybe too much to be used to (I am so, until I wrote this article before I know), to see the Wikipedia explanation:
Favicon is the abbreviation for Favorites icon, also known as the website icon
Ngx_strerror_init
The main function is to save the error information in the ngx_sys_errlist array, to do a errno->errmsg map array, when the system error occurs, directly through errno to find ErrMsg, reduce API calls.
Ngx_get_options (argc,
the intermodulation between Lua and C language appears in Lua-nginx-module, which gives some test code for the 第24-27 chapter of LUA programming.
#include
#include
#include
#include
#include
#include
The template is called a TPL and mimics the Smarty template engine.
The template we're talking about is a Web template, a page written primarily by a language composed of HTML markup, but there's also a way to represent a dynamic generation of
First, unzip the zip file
The open parameter of this method represents the zip file name processed. if the operation on the zip file object succeeds, $zip->open This method returns true*/if ($zip->open (' test.zip ') = = = TRUE) {
The code is as follows:
Date_default_timezone_set (' PRC '); Default time zoneecho "Today:", Date ("Y-m-d", Time ()), "";echo "Today:", Date ("Y-m-d", Strtotime ("June 2008")), "";echo "Yesterday:", Date ("Y-m-d", Strtotime ("-1 Day")), "";echo "
A. manipulating XML using SimpleXML
There are two traditional ways to work with XML files: SAX and Dom. SAX is based on an event-triggering mechanism that scans an XML file for processing, and the DOM constructs the entire XML file as a DOM tree
two questions encountered
1. Select the Date function, it doesn't work.
2. Download a slightly larger file and download only one half
Page Debug found a err_content_length_mismatch error
System: Centos,nginx,proxy to back-end Tomcat
Cause: Nginx
Recently in reading Ngx_http_upstream_module source code, first to let the module run up, and then debug tracking. This article describes the configuration of the simple Nginx reverse proxy.
First, install the httpd
Yum Install httpd
echo
Some JSON data has been processed in Python recently, but there are some problems in the process that have been recorded.
1.Python Post JSON format data to the server:
Looked up some information, mostly this kind of:
PHP Development Video Tutorial
Http://pan.baidu.com/s/1qW2QwDAV5 Classroom (Shangjun old decryption hdphp, hdcms)
Http://pan.baidu.com/s/1eQEfFloLinux Operating System Tutorials
Http://pan.baidu.com/s/1o6ySnkISphinx&Coreseek Chinese participle
Http:/
For installation of Nginx, you can view the previous article
load Balancing + static and dynamic separation Modify Nginx/conf/nginx.conf
Open the original file, vim/usr/local/nginx/conf/nginx.conf
Load Balancing:
Find server{}, add on
Consists of two files:
The first of the test.php
PHP "calendar.class.php"; $calendar=new calendar; $calendar-out ();
Second Calendar class: calendar.class.php
PhpclassCalendar {Private$year;//the current yearPrivate$month;//the
1. Start Nginx/usr/local/nginx/sbin/nginxPoechant@ubuntu:sudo./sbin/nginx2. Stop NginxPoechant@ubuntu:sudo./sbin/nginx-s StopPoechant@ubuntu:sudo./sbin/nginx-s quit-S is the way to send a signal to Nginx.3. Nginx Reload
php4.x version:
The constructor name for PHP 4.x is the same as the class name.
The constructor name of the subclass is the same as the subclass name (nonsense).
The constructor of the parent class in the subclass does not execute automatically.
To
This code refers to from Hanshunping 149 video After 5 speaking, need to learn a friend can refer to this code
Here is the test picture:
Here is the Code section:
1
Php234functionHMACMD5 ($data,$key)5{67//need to configure the environment
Run PHP file, Web page display 502 error,
Go back to the top right corner of Phpstorm show PHP interpreter is not configured
Please ensure this configured PHP interpreter built as CGI program
Adding local already installed PHP interpreter is
One, configuration file
on116641.16textapplicationtextapplicationon;
Second, the relevant parameters
gzip on;This instruction is used to turn the Gzip module on or off (on/off)
Gzip_min_length 1k;Sets the minimum number of bytes of pages allowed to
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