How to solve the PHP running timeout problem under IIS + fastcgi

Every time a large file is uploaded on The page, The FastCgi error occurs: "The FastCGI process exceeded configured request timeout". After several experiments, I understand that The configuration file "fcgiext" of FastCgi needs to be modified. ini

Parse PHP implementation code for calculating page execution time

As follows:Copy codeThe Code is as follows:$ T = new executeTime;Phpinfo ();Class executeTime {Private $ microtime;Public function _ construct (){$ This-> microtime = microtime (true );}Public function getNow (){$ This->__ dectruct ();}Public

Php replacement of multiple strings into the same solution

Copy codeThe Code is as follows:$ Name = 'today 3? , Very/cold ';$ Name = strtolower ($ name );// $ Name = preg_replace ('/[^ a-z0-9 \ s]/', '', $ name );$ Name = preg_replace ('/[\. \ s + \?, \/"]/',' _ ', $ Name); // change spacesEcho $

A simple php encryption and decryption function (dynamic encryption)

Copy codeThe Code is as follows:Function encode_pass ($ tex, $ key, $ type = "encode "){$ ChrArr = array ('A', 'B', 'C', 'D', 'E', 'F', 'G', 'h ', 'I', 'J', 'k', 'l', 'M', 'n', 'O', 'P', 'Q', 'R ', 'S ', 't', 'U', 'V', 'w', 'x', 'y', 'z ','A', 'B', '

Parse PHP to execute scripts in parallel in multiple processes

Php processes do not support multithreading. In some scenarios, you can use php to implement multi-process to make up for this deficiency:Copy codeThe Code is as follows:#! /Usr/bin/env php$ Cmds = array (Array ('/apps/bin/launcher. php',

PHP object-oriented improvements page 1/2

First look at the Code:Copy codeThe Code is as follows:Class StrictCoordinateClass {Private $ arr = array ('x' => NULL, 'y' => NULL );Function _ construct (){Print "StrictCoordinateClass is being created ";Print " ";}Function _ destruct (){Print " ";

Use discuz to implement PHP large file upload application instance code

If you really need to improve the uploading conditions of Forum attachments, you can try to set the parameters mentioned above in php. ini to meet the needs of uploading large files. At the same time, do not forget to set attachments in the

PHP base64 + gzinflate compression and decoding code

Base64 + gzinflate compressed (encrypted) files are usually Compression (encryption) code: Copy codeThe Code is as follows:Function encode_file_contents ($ filename ){$ Type = strtolower (substr (strrchr ($ filename, '.'), 1 ));If ('php' = $ type &

Php is a simple paging class

Class Helper_Page {/** Total Information count */Var $ infoCount;/** Total page number */Var $ pageCount;/** Number of entries displayed per page */Var $ items;/** Current page number */Var $ pageNo;/** Start position of the query */Var $ startPos;/*

Php reads the phone number in the database and generates an image.

The following code is used:Copy codeThe Code is as follows:$ Id = $ _ GET [id];Include ("admin/config. php ");$ SQL = "select * from user where id = $ id ";$ Data = mysql_fetch_array (mysql_query ($ SQL ));$ P = SBC_DBC ($ data [Phone], 1 );Function

Php full-text search and replacement implementation code

Exec ("/bin/grep-R' $ oldword' $ rootpath", $ results, $ errorCode );If ($ errorCode ){If ($ errorCode = 1 ){Echo "Possibly no files were found? $ Oldword in them \ n ";}Echo "OS Error: $ errorCode \ n ";Echo "Check 'man errno' and count down \ n

Add some common PHP functions to favorites page 1/2

Copy codeThe Code is as follows:Function GetIP () {// obtain the IP addressIf ($ _ SERVER ["HTTP_X_FORWARDED_FOR"])$ Ip = $ _ SERVER ["HTTP_X_FORWARDED_FOR"];Else if ($ _ SERVER ["HTTP_CLIENT_IP"])$ Ip = $ _ SERVER ["HTTP_CLIENT_IP"];Else if ($ _

Php filters dangerous html code

The following is the program code:Copy codeThe Code is as follows:Function uhtml ($ str){$ Farr = array ("// \ S +/", // filter unnecessary Spaces// Filter and other code that may introduce malicious content or maliciously change the display layout.

Use the PHP program to implement two methods to support page fallback

First, use the Header method to set the message Header Cache-controlQUOTE:Header ('cache-control: private, must-revalidate'); // supports page Jump backSecond, use the session_cache_limiter method.QUOTE:// Note that it should be written before the

Php header () function instructions

Instructions for using the header () function:I. role:~~~~~~~~~PHP only sends the HTML document header to the browser using the HTTP protocol to tell the browser how to handle the page. As for the transmitted content, you need to familiarize

Introduce the factory mode in php design mode

ProblemHow can you easily create such a "complex" object, that is, the operation does not need to be pasted and copied?SolutionCreate a factory (a function or a class method) to create a new object. To understand the usefulness of the factory,

PHP pseudo-static writing with code

For example, this webpageHttp://www.jb51.net/soft.php/1,100,8630.htmlIn fact, the soft. php parameter is 1,100,863 0.Equivalent to soft. php? A = 1 & B = 1 = 100 & c = 8630, but such a URL is too hard to remember. Search engines do not like it

Php code for simple compression of English strings

PHP, adapted to the ciphertext after simple encryption on the postCopy codeThe Code is as follows:// Replacement: Encrypted replacement from the previous versionFunction compress_func ($ match) {return strlen ($ match [0]). $ match [0] {0

Php mysql database operations

Copy codeThe Code is as follows:/** Mysql database DB* @ Package db* @ Author yytcpt (Shadow)* @ Version 2008-03-27* @ Copyrigth http://www.d5s.cn/*/Class db {Var $ connection_id = "";Var $ pconnect = 0;Var $ shutdown_queries = array ();Var $

Table Structure Diagram of the MySQL Data Source

Field Name field type field descriptionId integer IDDepart varchar (45) department nameEname varchar (45) employee namePcname varchar (45) PC nameIpaddr varchar (45) IP AddressPcmodel varchar (45) PC modelPcsn varchar (45) PC serial

Total Pages: 12780 1 .... 10209 10210 10211 10212 10213 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.