Pages

Friday, May 28, 2010

Task 1: PHP Introduction


PHP Introduction
1.     PHP stands for Hypertext Preprocessor
2.     It is server-side scripting language
3.     It is executed on server
4.     It supports many databases like MySQL, Oracle, Informix, Sybase, generic ODBC, etc
5.     It is an open source software
6.     It is free to download and use 
What is PHP file?
      It can contain text, HTML tags and scripts. It is returned to the file browser as plain HTML. PHP files have a file extension of “.PHP”, “.PHP3” or “.phtml”  
Why PHP?
      PHP returns on many platforms like windows, Linux, Unix. It is compatible with all servers which we are using today like apache, IIS, etc. It is easy to learn. It is easy to run on server side.
PHP syntax
      A PHP scripting always start with .
Example:
?>
Php file normally contains HTML tags, just like HTML file and some php scripting code.
Comments in PHP
There are two types of comment we r using. First is single line and multiple line comments. To use single line comment we use //. Second is multiple line comments use /* and */.
For example



//This is a comment

/*
This is
a comment
block
*/
?>


1 comment:

  1. I read your blog and I understand about the basic things of PHP. It is server side scripting language and it can supports different databases such as My SQL, Oracle and so on. We can save our file .php extension. Even we can give single and multiple line comments in program. Wow its really nice basic information.

    ReplyDelete