Let's start with a simple example---a TCP service that receives the input string, processes and returns the string to the client. The following is the corresponding code:
PHP Code:
------------------------------------------------------------------
Hardware:
Server: IIS 6
os:windows2003
Php:php5
mysql:mysql5.0
There have been a lot of problems installing, first of all IIS parsing PHP.
1. There is a php.ini-dist file in the PHP directory
Change his suffix to php.ini.
Then in ini
Definition and usage
Mt_rand (Min,max) returns a random integer using the Mersenne Twister algorithm.
Description
If no optional parameter min and Max,mt_rand () are provided, the pseudo-random number between 0 and Rand_max is returned. For
PHP is a weak type of language, unlike C #/JAVA, when declaring a variable, there is no need to declare its type. Therefore, there may be a lot of special values, and occasionally there are some weird problems.
Afternoon, from the foreign site
Error_reporting
Sets the level of error message return.
Syntax: int error_reporting (int [level]);
return value: Integer
Function type: PHP system functions
Content Description
This function is used to set the rank of the error message return,
What if we want to know who called a method? Debug_print_backtrace can solve!~
Test code
1
";d ebug_print_backtrace (); 6 } 7} 8 9 class B {Ten function say ($msg) {One $a = new A (); A->say ($msg); }14}15
In this chapter we will present an example to further deepen the understanding of the class.
This chapter builds a page class, which represents a webpage. There are functions such as title, style, content, etc. of the displayed page.
The effect of
Class Shtml
{
var $Templet;
var $DataSource;
var $Dir;
var $fileName;
var $mod;
var $handle;
function Shtml ($fileName = "")
{
$this, fileName = $fileName;
$this mod = "WB";
$this-handle = FALSE;
$this-Templet = "";
$this-DataSource = Array ();
Chen Hao (haohappy)
This article should be Chinaunix moderator Honestqiao invited to write, a brief introduction of PHP. Originally is to vote for "computer enthusiasts", but not easy to understand, for ordinary computer enthusiasts estimate not
For the new user, it's very common that would have problem to enable GD support in PHP, after fail and retry for hours, I F Igured the steps below to get it work:
1. Download/compile/install libpng
2. Checkout the Libjpeg If you can ' t get access
First, the basic structure of PHP:
Using the Include function
Your page Subject and domain name
The above content is the title of each page we use, do not move.
Head of each page:
"" Your others meta tag
"" Your others meta tag
"" Your
What is Prado?
Prado is an event-driven and component-based Web application Development framework in the PHP5 environment. To develop Web applications using Prado, the main thing you need to do is to use the existing components (the original is
Definition and usage
The Addslashes () function adds a backslash before the specified predefined character.
These predefined characters are:Single quotation mark (') Double quotation mark (") backslash (\) NULL syntax
Addslashes (String)Hints and
PHP implode () function
PHP String functionDefinition and usage
The implode () function combines array elements into a single string.The syntax implode (separator,array) parameter description is separator optional. Specifies what is placed between
Definition and usage
The DirName () function returns the directory portion of the path.
GrammarDirName (path) parameter descriptionPath is required. Specifies the path to check.
DescriptionThe path parameter is a string that contains a full path
For beginners Resources to Get Started with PHP from Scratch PHP for beginners:building Your first simple CMS Begi Nners PHP Tutorial? Using Cookies php for Beginners:simple Login, Logout, and Session handling tutorial:writing your first PHP script
IIS Environment
For example, in the PHP installation directory c:\php, first locate the C:\php\sapi\php4ts.dll file and copy it to the Windows system directory (%windows%/system32 directory in windowsxp). Add a file association in IIS and map the.
PHP Editor IDE:
1.Zend Studio 2.PHP coder 3.Nusphere phped 4.Ankord php Expert Editor 5.DzSoft PHP editor 6.dev-php IDE 7.Master php 8.Kom Odo
9. Maguma Studio 10.PhpLens 11.EditPlus
The download address of the editor is not listed, and a search
First confirm if there is php-cgi.exe in your PHP5 to download the version again. This article takes PHP 5.2.8 as an example
1. Open php.ini
Locate to:; cgi.force_redirect = 1, remove the preceding semicolon as: Cgi.force_redirect = 1
Locate to:;
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