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 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
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
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
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
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
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
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:
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
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
*/@ 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
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
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
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:
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