MySQL database generated data dictionary, directly available to easily view database tables, fields, to do a data dictionary is necessary, the following simple changes under the configuration can be used, the style is also very good.
'.
This article describes the PHP custom function implementation of JS escape method. Share to everyone for your reference, as follows:
PHP functionfunction Escape ($string) {$n = $bn = $tn = 0; $output = "; $special =
In this paper, the author introduces the method of bulk deletion of horse files and the contents of bulk replacement pages in PHP. Share to everyone for your reference, as follows:
read ())) {if ($v = = "." | | $v = = ".. ") continue; $file = $d->
Convert timestamp to Month day
$d=new DateTime("@21474836490");$d->setTimezone(new DateTimeZone("PRC"$d->format("Y-m-d H:i:s");
Convert Month to date timestamp
$dnew DateTime('2650-07-06 16:21:30');echo''.$d->format('U');
The run-time may be
First, configure the firewall
CentOS 7.0 uses firewall as the firewall by default.
1. Close firewall:
Systemctl Stop Firewalld.service #停止firewall systemctl Disable Firewalld.service #禁止firewall开机启动
2. Turn off SELinux
Vi/etc/selinux/config #
When you need to sync to another machine when uploading files, you can perform a shell script for file synchronization.
#! /bin/basha=$1b=$2ip=$3port=$4passwd=$5/bin/rpm -qa|/bin/grep -q expectif-ne0 ];thenecho"please install expect"exitfiif$#-ne5 ]
When we want to compare some sentences or the content of the similarity or matching degree, it will inevitably use the similar_text () This function, the following for this function to do a code demonstration
I created 6 sentences, and used the
syntax error , unexpected t_variable is a common error in PHP development and the most low-level error, if you see the following error:
Parse error:syntax error, unexpected t_variable in D:\test\controllers\admin.php on line 30
This error causes
I. Introduction of PHP
(1) PHP: Chinese name, hyper-text preprocessor, is a common open source scripting language;
(2) Dreamweaver introduction
(3) Four types of delimitersStandard style:
;
Short Mark Style:
;
By default, the short markup style is
Recently, due to some reasons for the company has to re-enter the wave of job search. In the interview process also encountered some more interesting face questions. Probably did not think at that time, came back to think again. Title One: It is
Find in Apache configuration file httpd.conf
LoadModule Rewrite_module modules/mod_rewrite.so
LoadModule Vhost_alias_module modules/mod_vhost_alias.so
Remove the front #
# Virtual Hosts
#Include conf/extra/httpd-vhosts.conf
Remove the # from the
1. Polling (default)
Each request is assigned to a different back-end server in chronological order, and can be automatically rejected if the backend server is down.
2, Weight
Specifies the polling probability, proportional to the weight and access
Background
Nginx Service Configuration and usage
Process description
Launch the service in a http://openresty.org/cn/getting-started.html way.The commands used are:Path=/usr/local/openresty/nginx/sbin: $PATHExport PATHThen we start the Nginx server
Recently encountered
http_x_real_ip, checked the information.
$_server[' remote_addr ']; The server's address is all you get.
$_server[' Http_x_real_ip ']; all you get is the address of the client.
Nginx proxy mode, get the real IP of the
Although I am also a PHP learner, but did not really understand the PHP internal garbage collection process, just in our code with unset,null,mysql_close,__destruct and so on some functions to release the object to prevent memory overflow, so online
One. Ideas:
1. Android uses WebView to load Web pages, set its useragent specific characters on the Android side
2. Server-side PHP to determine whether the user agent gets the specific characters of Android
3. If available, load the Web page for
Varnish and squid are professional cache services, and Apache,nginx These are third-party modules to complete
Squid features the most comprehensive, but the architecture is older, performance is not varnish good
Varnish uses the "Visual page
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