Diagram of IIS configuration PHP environment in Windows7

Open IIS (Win2K: Start-Program-Administrative Tools-internet Service Manager), right-click on the default Web site, and make the settings in the home directory as shown in the following illustration, note the steps: 1, the right mouse click on the

Scheduled tasks in Windows Execute PHP file method

Scheduled tasks in Windows Execute PHP file methodScheduled Tasks, Windows Using our windows planning tasks to implement the timing of PHP file method, there is a need to learn friends can refer to. Method one, executing in cmd How is it easy to

PHP capture remote server picture file

Class GetImage { var $source; var $save _to; var $quality; function Download ($method = ' curl ') { $info = @GetImageSize ($this->source); $mime = $info [' MIME ']; What sort of image? $type = substr (STRRCHR ($mime, '/'), 1); Switch (

PHP Classic Paging function

/*** Paging function***/function multi ($total, $perPage, $curPage, $pageUrl, $maxPages = 0, $page = ten, $autoGoTo = TRUE, $simple = FALSE) {$multiPage = ';$pageUrl. = Strpos ($pageUrl, '? ') ' ': '? ';$realPages = 1;if ($total > $perPage)

PHP Data paging and data display effect

Include_once (DirName (__file__). /.. /inc/conn.php ');Include_once (DirName (__file__). /.. /photo/inc/function.php ');?> Untitled Document Export execel form account mailbox sex Baby Birth date province real name zip mobile address

The time zone output of the date function in php is incorrect.

Problem: echo date ('o-m-j H: I '); The code is as follows:Copy code Echo date ('Y-m-d H: I: s ');? > 〉 Output Current time: 02:32:17The actual time is 10:32:17.The output result is 8 hours different from the local time.Cause: The time zone is

Solutions for intercepting Chinese garbled characters in PHP

The simplest is to useExample 1 The code is as follows:Copy code Echo substr ("Hello world! ", 6 );?> Output:World!Example 2Echo substr ("Hello world! ", 6, 5 );?> There is no problem in English, but there is a problem in Chinese. Next we will

In the php form input box, use line breaks and press enter to replace

The code is as follows:Copy code ? $ Str = "this is a test n ";$ Patten = array ("rn", "n", "r ");? // Replace rn first, then whether n exists, and then replace r$ Str = str_replace ($ order, "", $ str );?> ? // Php has three solutions  The

How to correctly understand PHP errors

Summary: no matter how careful we are when writing a program, mistakes are always inevitable. These errors often confuse the PHP compiler. If developers cannot understand the meaning of the compiler error messages, these error messages are not only

Solve the problem that nginx + php-fpm cannot upload files

SolutionLocation ~ \. Php $ {Root/var/www/html/public;Client_max_body_size 50 M;Client_body_temp_path/tmp;Fastcgi_pass 127.0.0.1: 9000;Fastcgi_index index. php;Fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;Include

Compile and install nginx php-fpm configuration and add it as a Service Command method

When we compile and install php in linux. /configure, a lot of binary files will be generated under the php Directory, find php/sapi/fpm/init. d. php-fpm,Then cp/root/php/sapi/fpm/init. d. php-fpm/etc/init. d/php-fpm. The file content is as follows:

Php installation xdebug debugging PHP program is slow problem solution

Xdebug is a good component for debugging php. However, if you do not configure it properly, you will encounter various problems:A: slow access responseB: access to ultra-fast response, but it is a blank page.Problem A has many solutions, but there

Php file writing and reading functions

// Read the file functionFunction readfromfile ($ file_name ){If (file_exists ($ file_name )){$ Filenum = fopen ($ file_name, "r ");Flock ($ filenum, lock_ex );$ File_data = fread ($ filenum, filesize ($ file_name ));Rewind ($ filenum); // osphp.com.

Php str_replace and substr instance functions

$ Newpic = 'http: // upload.111cn.net /';$ Oldpic = 'http: // down.111cn.net/uploads /';$ Litpic = 'http: // down.111cn.net/uploads/allianz 101124/1_21292911l.jpg ';$ Litpic = str_replace ($ oldpic, $ newpic, $ litpic );/* $ Litpic = $ newpic.

Javascript calls js instance method in php

These three methods are all found on the internet. The first test is acceptable, and the second Test is acceptable. However, the first Test may be incompatible with different browsers.*/// Method 1Echo "document. write (' ');";// Method 2Echo "var s

Php defines the 404 page method

*/@ Header ("http/1.1 404 not found ");@ Header ("status: 404 not found ");Echo 'echo 404 ';Exit ();/*Check whether 404 is set successfully. You can use the firebug plug-in of firefox to check whether is set successfully.View methodWhen firebug has

Php string comparison

A simple string is equivalent to operator (=.*/$ Str1 = "test ";$ Str2 = "test ";If ($ str1 = "test") echo "OK-1 ";If ($ str1 = $ str2) echo "OK-2 ";/*If the string is greater than or less than the comparison value, the strcmp function is used to

Php array sorting array_multisort rsort krsort

Here we mainly use the rsort krsort function, which sorts key names in reverse order. If you want to sort array element values, use sort. array_multisort is used to sort multi-dimensional arrays.*/$ Array = array ('www .111cn.net ',), array (, 6

Php Getting Started Tutorial Lesson 1 simple PHP display and embedded PHP

The code is as follows:Copy code first php Tutorial program Echo "hello, this is the first php program ";?> Example 2: html code    The code is as follows:Copy code Example of Embedding php in html my favorite colors:  

Total Pages: 12780 1 .... 8781 8782 8783 8784 8785 .... 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.