Php beginners. 1. download an integrated environment software, that is, other people put all the messy things in one piece and make them into software. this is a SG type. I think beginners should use this kind of software. 2. download and install them separately. php 1. download an integrated environment software, that is, other people put all the messy things in one piece and make them into software. this kind of software is SG type. I think beginners should use this kind of software;
2. Download and Install. php. zend. apache. this method is messy and is not clear yet.
I installed iis on the machine, so I installed php and zend. now I can run php and asp simultaneously on the server.
Php is embedded in html and runs as follows:
$ A = "Hello ";
$ B = "php ";
Echo $ a. $ B;
?>
Note:
Define a variable with the $ variable name, such as $ a $ B. When referencing this variable, use the $ variable name;
After each statement is complete, add the ';' sign to end;
Echo is used for output;
$ A. $ B; '.' is used to connect two strings.
The running result of the above program is:
Hello, PHP!
Output php information:
Phpinfo ();
?>
If statement in php:
$ A = 10;
$ B = 1;
If ($ a = $ B ){
Echo "a = B ";
}
?>
Output result:
A = B
MD5 and password functions. anyone who has worked on the web knows about md5. this is only a function in php and the call is OK:
$ A = "php ";
$ B = md5 ($ );
Echo $ B;
?>
Output result:
E1bfd762321e409cee4ac0b6e841963c
Tutorial 2. Download and Install. php...