Environment:Operating System: Windows 2003 Server SP2PHP version: php-5.2.6-Win32
1. Download FastCGI for IIS6
Http://www.iis.net/download/fastcgi
After downloading the SDK, double-click it to install it.
After installation, five files are
ArticleDirectory
Example 1
Example 2
Define () Definition and usage:
The define () function defines a constant.
Constants are similar to variables, except that:
After setting, the constant value cannot be changed.
PHP is basically an array language. There are often a lot of array loop operations, mainly in two ways, one is foreach, the other is while, in the end, which is good or bad is always controversial, although I have been aware of this problem for a
/*** File Upload class upload*/Class upload {Const upload_seccuss = "Upload successful! Go to the next step ...";Const upload_failing = "Upload Failed! ";Const upload_errors = "failed to upload the image. It indicates that the image file is empty,
Require () and include () have many similarities and differences. Understanding their differences is very important, otherwise it is easy to make mistakes.
I will describe these two statements together, So readers can learn more. . Require ()
PHP is simple, but it is not easy to be proficient. In addition to using it, we also need to know its underlying Working principles.
PHP is a dynamic language suitable for web development. Specifically, it is a software framework that uses C
1. Getting Started
In short, regular expressions are a powerful tool for pattern matching and replacement. We can find regular expressions in almost all UNIX-based tools, such as the VI Editor, Perl or PHP scripting language, and awk or SED Shell
Server variable $ _ server details:
1. $ _ session ['php _ Self '] -- get the file name of the script being executed
2. $ _ server ['server _ Protocol'] -- name and version of the communication protocol when requesting the page. For example, "HTTP/1.
Prerequisites
Determine whether the remote URL is valid. The remote URL includes remote images, webpages, videos, and other elements.Solution: Use PHP
Use the file_get_contents function. However, if the URL cannot be accessed, the program will be
For ($ I = 10; $ I> 0; $ I --){Echo $ I;Flush ();Sleep (1 );}?>
According to the PHP Manual
This function sends all the output of the program so far to the user's browser.
The above code should output $ I every second. But not necessarily in
Form: http://blog.ixpub.net/html/92/15070492-280599.html
In general, the phpinfo () page can be displayed. Let's start with the problem that occurs after the page is displayed.PHP problems are displayed on the phpinfo () page.
First, check
1. Create a stored procedure
1. Basic Syntax:Delimiter //
Create procedure sp_name ()Begin.........End //
Delimiter;/* exit the declaration code segment form of delimiter. If it is missing, you need to "End //" each time to end code execution
When upgrading the local PHP to version 5.3.3, I found that the php5apache2_2.dll library was not found in the ETS version package. I thought PHP had fallen out of this important library. After Google, I learned that it was the FastCGI Installation
Date--Format a local time/dateDescriptionStringDate(String format [, int timestamp])Returns the integerTimestampString generated based on the given format string. If no timestamp is provided, the current local time is used. In other
Regular tasks have always been a problem for many friends in PHP, but they are encountered in many places.For example:In game development programs, send troops to players every 10 minutesIn the SNS community, check if someone sends me a message
Use PHP's ob_start (); to control your browser cache!
The Output Control function allows you to freely Control the Output of data in the script. It is very useful, especially when you want to output the file header after the data has been output.
Document directory
Encryption algorithms
Hash Algorithms
Http://www.cityinthesky.co.uk/delphi.html
Delphi
I 've been using Delphi for quite a long time now, from version 1 on Windows 3.11! I intend to release any interesting things that I
Document directory
Differences between echo () and print ()
Php has been self-taught for more than two months. Learn how to do something, use basic functions, and use help to open and search. No problemHowever, the descriptions on the php
/*----------------------------------------------------------------------Function: Adjust the image size or generate a thumbnail.Modified:Return Value: True/FalseParameters:$ Image: The Image to be adjusted (including the path)$ Dw = 450 max width
Http://www.yzswyl.cn/blread-1601.html
Today, a friend in the group asked "private function _ construct () {}" to prevent direct new objects? So I also went to the Internet to find a detailed document for analysis. I feel that it is quite good. I
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