Request PHP Majority Group composition write database method
This post was last edited by Wjm_hi on 2013-10-25 15:55:24
I do a grade management system
Subject
$XK = Array ();
Grade
$nj = Array ();
Class
$BJ = Array ();
There are three arrays,
-- Redirect nginx error page --
In the nginx configuration file, you can configure the redirection page in which an error occurs. The nginx. conf file contains the following configuration information:
Error_page 404/404 .html;
The 404.html
How to bind a mobile phone
Many websites have mobile phone binding functions. In fact, mobile phone binding has many advantages. On the one hand, when a user binds a mobile phone, it means that you have reached the most direct contact information
1. $ _ SERVER ['php _ SELF '] -- get the file name of the script being executed
2. $ _ SERVER ['server _ Protocol'] -- name and version of the communication PROTOCOL when requesting the page.
3. $ _ SERVER ['request _ time'] -- the timestamp at the
What is CGI?
CGI stands for the Common Gateway Interface, which is a program running on a Web server. With browser input triggered, this script is usually like a bridge between a server and other programs in the system, such as a database.
CGI
1, $. Get (URL, [data], [callback])
Note: The URL is the request address, the data is the list of request data (optional, you can also write the parameters to be passed in the URL), and the callback is the callback function after the request is
Many friends have questioned the incorrect MVC pattern. This implementation is indeed incorrect if it is defined according to the classic MVC pattern.
In the classic MVC mode, the Controller only determines which view to call based on the request,
There are using PHP frameworks nowadays, but none of them is like Phalcon (really, trust us on this one ).
Almost all programmers prefer to use a framework. this is primarily because it provides a lot of functionality that is already tested and
The difference between mysql_pconnect and mysql_connect is that the P link is a persistent link and does not close the link, even if mysql_close () is used. After the connection is established, the sleep state is maintained, you can use show
PHP built-in Session hidden danger (blocking caused by session file exclusive lock ),
The default session processor of PHP is session. save_handler = files ). If the same client sends multiple requests concurrently (for example, ajax sends multiple
JQuery returns JSON data through Ajax, and jqueryajax returns json
The server PHP reads MYSQL Data, converts it to JSON data, passes it to the front-end Javascript, and operates JSON data. This document uses examples to demonstrate how jQuery sends
Four Common php run modes and php4 run
SAPI: Server Application Programming Interface Server Application Programming port. It is the interface for php to interact with other applications. There are many ways to execute php scripts, either through
OAuth2.0 webpage authorization interface and oauth2.0 authorization InterfaceOAuth2.0 webpage authorization Interface
The thinkphp implementation version of OAuth2.0 web page authorization interface mainly implements oauth web page authorization and
PHP transmission session curl function instance details, session curl
Example of the PHP transfer session curl Function
Preface:
Take over the burden of the company's project PC end owner, and take a major responsibility; from requirement analysis,
What are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI ?, Fastcgiphp-cgi
What is CGI?
CGI is a Common Gateway Interface. It is a tool for the HTTP server to "talk" with programs on your or other machines, the program must run on the network
I. php running mode in apache
Php is common in apache.
Three working modes: CGI Mode, FastCGI mode, and Apache module DLL
Comparison:
1. Comparison between CGI Mode and module mode:Difference between the two working methods of php in apache (CGI
Rewite.Under the server block, the rewrite section is executed first, and then the location block is matched.There is no difference between rewrite break and last in server, it will match location, so there is no need to use last to initiate a new
I recently investigated the PHP-CGI configuration and found that the online articles are really just for example. I don't know how to make the web server run according to their configuration method.
The Research on PHP-CGI mainly aims to understand
The following small series will bring you a comprehensive understanding of global variables in PHP. I think this is quite good. now I will share it with you and give you a reference. Let's take a look at several Super global variables (superglobals)
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.