How to stop php execution I have now developed a collection of php code to collect web page data and save it on the desktop. now I found a problem during the test. when the browser is closed, php is still executing to generate data. The question is:
The general server program is running in the system background, which is very different from the normal interactive command-line program. There is a function daemon in glibc. Call this function, you can make the current process out of the terminal
This article is a detailed analysis of the PHP operating mode introduced, the need for a friend referencePHP operating mode has 4 minutes:1) CGI Universal Gateway Interface (Common Gateway Interface))2) fast-cgi resident (long-live) type CGI3) CLI
Before installing, you need to know what you want to do with PHP first. PHP is primarily used in three areas, and is described in the section "What PHP can Do":
Web sites and Web applications (server-side scripting)
Command-line
SAPI module specific location. The exact location of the SAPI module
SAPI is an abbreviation for the server Application programming Interface (Application programming interface for servers). PHP provides a set of interfaces through SAPI for
Now PHP official Download PHP installation package has VC11 or VC9 words, what does this mean, we should download which kind of installation package better?In fact, the PHP official website gives the answer:The VC6 version is compiled with the
Reprint : http://www.cnblogs.com/zcy_soft/archive/2011/12/10/2283437.htmlAll PHP distributions, whether compiled from source code or pre-created versions, are provided with a PHP executable by default. This executable can be used to run the
Lou Zhu is a novice who just joined the work, these days just opened the blog Park Weibo, want to through this platform with you to learn and share some technical knowledge.But landlord hesitated for a long time, do not know the first article should
PHP running mode has 4 minutes:
1 CGI Universal Gateway Interface (Common Gateway Interface))2 fast-cgi resident (long-live) type of CGI3 CLI command-line run (command line Interface)4 Web Module mode (module mode for Web server running Apache, etc.)
General server programs are running in the background of the system, which is very different from ordinary interactive command-line programs. There is a function daemon in the glibc. Calling this function allows the current process to be detached
PHP running mode has 4 minutes:
1 CGI Universal Gateway Interface (Common Gateway Interface))2 fast-cgi resident (long-live) type of CGI3 CLI command-line run (command line Interface)4 Web Module mode (module mode for Web server running Apache, etc.
General server programs are running in the background of the system, which is very different from ordinary interactive command-line programs. There is a function daemon in the glibc. Calling this function allows the current process to be detached
Timer task, in the Web application is more common, how to use PHP to implement the timer task, there are roughly two scenarios: 1 Use the crontab command, write a shell script, in the script to call the PHP file, and then execute the script
(pseudo) Multithreading: the use of external forcesUsing the Web server itself multithreading to handle, from the Web server multiple calls we need to implement multithreaded program.QUOTE:We know that PHP itself does not support multithreading, but
I. Basic USE
X window and text mode switching.Usually we also call the text mode the terminal interface, terminal or console. Linux By default will provide six terminal to allow users to log in, the way to switch to use: [Ctrl] + [Alt] + [F1]~[f6]
Sapi:server application Programming Interface Server-side application programming port. It is the interface that PHP interacts with other applications, and PHP scripts can be executed in many ways, either through a Web server or directly under the
Multithreading | process
I have not looked into this information because I don't need it. There is a recent project that requires this kind of functionality.
Check out the PHP manual and other examples to learn the basics of two ways:
(pseudo)
Environment: w2k+php4.3.1+php/gtk0.5.2A simple Notepad (you can only open files for modification)Set_time_limit (0); Set run timeif (!class_exists ("GTK"))//Determine if there is a GTK moduleif (Strtoupper substr ($_server["OS", 0, 3)) = = "WIN")DL (
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.