$data = file_get_contents("php://input");
Php://Input is a read-only stream that can access the raw data of the request. POST request, it is best to use php://input instead of the $HTTP _raw_post_data because it does not depend on a
Smarty
First, the principle of the template
1. Why use a template
1) Scene:
for ($i =0; $i
Echo '. $row [' Proname ']. '
}
This type of writing adds HTML to PHP and is not conducive to development and maintenance
2) Scene:
We have now developed a
WordPress plug-in Development Learning Series first article, append the fixed character "Hello world" after each post
One. Open the WordPress directory->wp-content->plugins
Two. Create a new directory under Plugins 1100w-hello-world
Three. Create a
1, install MySQL, zlib, etc.
Issue record
1, Configure:error:Cannot find MySQL header files Under/usr/include/mysql.Note that the MySQL client library isn't bundled anymore!Tip I can't find the MySQL header filesSurf the internet for a bit, with
Composer, a tool similar to the Yum in CentOS, solves dependencies. PHP has to solve the dependence of ...
One, install composer
To https://getcomposer.org/, go to download download. Linux and Windows are available, and the installation is simple.
First, comments
* Note content *
HTML comments are displayed in the client source file
Smarty comments are not sent to the client
Smarty's comments are mainly for the template designer to see
Second, the variables in the template
L is assigned by
I. Creating a service Script
vim /etc/init.d/nginx
The script content is as follows
#!/bin/sh# Chkconfig:- aboutPath=/web/server/nginx/sbindesc="Nginx Daemon"name=nginxdaemon=/web/server/nginx/sbin/$NAMEconfigfile=/web/server/nginx/conf/$NAME.
JS file can call the JS function, cannot call the PHP function, call the other JS file functions need to include the source to call the function, JS file is executed on the client, PHP is executed on the server. The function of JS is to provide a
In view of the current situation, many friends know that the program is very popular, because the program work units, and the salary is also very high, so many young boys are very fond of spending time to study the program of this piece, colleagues
VC compile Nginx When adding Nginx_dav_ext_module module after a variety of errors, all sorts of uncertain, had to switch to MinGW.
1, first compile expat, put the compiled lib,include,bin what all put into MinGW
2, add # include sys/stat.h in
Today, you are ready to put a PHP demo under IIS, and the Web site is configured under IIS:
The application pool is in Integrated mode. NET Framework 2.0 (2.0 or 4.0 is not related, because PHP runs in fastcgi mode), the application pool identity
The individual thinks that the scan code pays more than the JSAPI payment from the development and the use to be more satisfactory. Scan code payment do not worry about whether it is the PC or mobile browser or client access problems, generate a QR
nginx reverse proxy, static and dynamic combination
One, the default polling mode
Benefits : each request is assigned to a different back-end server in chronological order, and can be automatically rejected if the backend server is down.
HTTP
/*1, each page must be opened session_start () to use the session in each page. 2, Session_Start () initialization session, the first access will generate a unique session ID is saved on the client (is based on cookie), the next time the user
1, for
PHP
file, the introduction of variables in double quotation marks requires adding
{
Variable name
}
;
. variable name or . Variable name . ;
$a = "gegweg{$demo};
$a = "Gegweg". $demo;
$a = "Gegweg". $demo." Fweffwef ";
2, for The JS file,
Hypertext Markup Language, which is what we often say
HTML
is a standard markup language used to make Web pages, and it is made up of a series of
HTML
label composition.
HTML
Most of the labels are paired, such as
, which are the start and end
There is no short cut in life, we are only grounded.
has been away from the campus for nearly two years, experienced from the impulse of ignorance, confusion of the struggle, the choice of the face of temptation, began to choose the process of
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