Explanation of four common php running methods and php4
Four Common php running modes: CGI, FastCGI, APACHE2HANDLER, and CLI.
1. CGI
CGI is the common gatewag interface. It is a program. Generally speaking, CGI is like a bridge, which connects the
Page JumpHeader (' Location:url ');Advantage: Jump Now!Disadvantage: There is no way to give a hint before jumping!?Header function is to send the response header information! The corresponding header information, is part of the corresponding
PHP requests a remote URL content with two methods fopen/file_get_contents and curl.The difference between 1,fopen/file_get_contents and curl(1) Fopen/file_get_contents each request will be re-made DNS query, does not cache the DNS information.
Mysql_pconnect () and mysql_connect () are very similar, but there are two main differences.
First, when connecting, this function will first try to find a (persistent) connection that has been opened with the same user name and password on the same
PHP common mode of operation:1.CGI(Universal Gateway Interface/Common Gateway Interface)--apache Server encounters a PHP script that is interpreted by the CGI program and returns an explanation of the results to the Apache server.2.FastCGI(resident
This article provides a detailed analysis of php running modes on various web servers. For more information, see
I. php running mode in apache
Php is common in apache.
Three working modes: CGI mode, FastCGI mode, and Apache module DLL
Comparison:
1
This article provides a detailed analysis of the PHP running mode. For more information, see
PHP running mode has four minutes:1) cgi Common Gateway Interface ))
2) fast-cgi resident (long-live) type CGI
3) cli Command Line Interface)
4) web module
This article mainly introduces the php form request to obtain the data summation implementation code. if you need it, you can refer to the following to obtain the value of the form request:
Case:
Request. php
The code is as follows:
This article mainly introduces four common php running methods. This article describes CGI, FastCGI, APACHE2HANDLER, CLI, and other four running methods. if you need them, refer to SAPI: server Application Programming Interface Server Application
This article mainly introduces how Yii2 hides frontendweb and backendweb. if you need it, refer to Yii as a high-performance, component-based PHP Framework for rapid development of modern Web applications. The name Yii has two meanings: "Ultimate
Php practices: 15th days. Today, I learned again that curlPHP provides curl _ * series of functions to operate curl. The following are commonly used: Curl_init initializes a curl session Curl_close. of course, this is disabled. today, I will study
Author: SuperHei article Nature: original release date: the program described OKPHP is developed by www.okphp.com a professional website management system, the current products include: OkphpCMS, OkphpBBS, OkphpBLOG. Due to the instrict filtering of
This article describes several php post data acquisition techniques. For an experienced (1) form POST submission, PHP can obtain POST data $ _ POST and php: input values, $ HTTP_RAW_POST_DATA is empty $ _ POST is associated with an array. for an
In-depth explanation of the PHP operating mechanism. Let's take a look at the following PHP running mechanism process: 1. we have never started PHP-related processes manually. it runs with Apache startup. 2. PHP uses mod_php5.so to simulate
Let's
Today, when I wrote a small example, when php submitted it to php, I wrote $ _ POST as $ _ post. after a long time, I still didn't get the front-end value. Well, write this blog post and paste this simple example below as an accumulation of power!
What are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI? In the php runtime environment configuration, which one is more suitable for websites.
What is CGI?
CGI is a Common Gateway Interface. it is a tool for the HTTP server to "talk" with programs
PHP Basics CGI, FastCGI, PHP-CGI with PHP-FPM. CGICGI is a public Gateway Interface (CommonGatewayInterface). an HTTP server is a tool used to communicate with programs on your or other machines. its programs must run on network servers. CGI
CGI is
CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI modes
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 server.
CGI can be written in any
What are CGI, FastCGI, PHP-CGI, PHP-FPM, and Spawn-FCGI? 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 server.
CGI can be
How to solve the problem that the number of MySQL connections exceeds the limit: the User database name has already more than 'max _ user_connections 'active connections error is reported on the website recently. It is necessary to study this
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.