- Used to Create dynamic and User friendly websites.
- Used to write a server side scripting.
- Scripts executed in webservers like Apache, Tomcat, IIS (Internet Information Service), etc.
- Support many databases, mainly MySQL.
- Opensource Software.
Extensions of PHP file:
* .php
* .php3
* .phtml
Why PHP:
Ø Runs in any Platform.
Ø Compatible with almost all servers used today.
Ø PHP is easy to learn and runs efficiently on sever side.
Commands used in PHP:
* print – Print in screen.
* Echo – Print in screen.
* hr (Inside <>) - Breaking lines with a horizontal line (Ruler).
* br (Inside <>) - Break Line.
* // - Making a line not to work.
* /* */ - Making multiple lines not to work.
Variables in PHP:
ü No quotes for numerical values.
ü Quotes for Characters.
Eg:
No comments:
Post a Comment