Because PHP has many open-source projects, I often download PHPProgramAnd the website to learn. It is necessary to learn how to simply publish in IIS.
Today, I would like to share with you one of the ways to enable IIS to support PHP.
Header ("Location: Login. php ")
Header ("Location:") is the PHP redirection statement. In fact, there are several points worth attention in use.
1. No output is required before the header.
However, many times we have output a lot of items
Before introducing the PHP free space selection method, we need to specify a purpose, a purpose, and a space?
It is actually a website. OK. With this purpose, we will continue.
First of all, you need a website development language, namely PHP.
Over the past two days, I have encountered some problems with PHP with a buddy. Let's take a look:
1.Problem: Install Apache and PHP, and create index. php after configuration, which is written into , The output result is plain text,Source
The fields in double quotation marks are interpreted by the compiler and then treated as HTMLCodeOutput.
''Is output directly without being interpreted in single quotes. It can be seen from the literal meaning that single quotes are faster than
Definition and usage
Parse_ini_file ()The function parses a configuration file andIn array formReturn the settings.
DB. ini content:
Id = 1;Username = marcofly;Password = WHF;Email: 66666;
PHPCode:
$ Arr=Parse_ini_file("Db.int ");Echo"
/*******Echo********/
Echo-Output one or more strings
Description
Echo (string arg1 [, string...]) echo () is actually not a function (it is a language structure), so you do not need to use parentheses. Echo () (unlike some other languages) is
Variable RegulatorUsed for variables, user-defined functions, and strings. Use the '|' symbol and the regulator name to apply the regulator. The behavior of a variable regulator is determined by the value of the parameter. Parameters are separated
Notes on using PHP variable names for arrays and Classes
Sometimes variable names bring great convenience to programming. That is to say, the variable name can be dynamically named and used. Generally, variables are named using the following
$ Date1 = Strtotime ( ' 2011-04-30 ' ); // Converts a date to a timestamp. $ Date2 = Time (); // Returns the timestamp of the current time. $ Nowtime = Strftime ( " % Y-% m-% d " , $ Date2 ); // Format the
Http://luchanghong.com/article.php? Act = show & id = 24
Now, many of you will not configure Apache, let alone configure an independent domain name locally. Today, I will explain in detail how to configure Apache and then configure the local
Character
Description
\
Mark the next character as a special character, a literal character, or a backward reference, or an octal escape character. For example, 'n' matches the character "N ". '\ N' matches a line break. The
In the previous chapter, we introduced how to compile our own functions. Next, we will write an extension function with parameters and return values.
Because Zend does not support formal function call syntax checks, we must be "careful" when
1. Image Format: currently, common image formats for website development include GIF, JPG/JPEG, and PNG .....
Differences:
GIF images have a high compression rate, but only 256 colors can be displayed, which may cause loss of colors.
1. File Reading
"; // by default, after the content is output to the webpage, It is not displayed with line breaks, because the web page does not recognize \ r \ n // All \ r \ n => $ content = str_replace ("\ r \ n ", "", $ content); echo $
If you are a newbie, this may be the best method. Build PHP
It is not very difficult, but a little complicated. It takes a lot of time to build a PHP + MySQL environment. Worse, many new users often encounter such problems when configuring PHP.
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