my php classes

class 1 :                                                                          24/2/2012


             Today i started learning php,my first class went good.I saw about basic website designing concepts.
                There are two types of websites they are,
                   
                 1. Presentation websites
                 2.Processing websites

1.Presentation websites :
                 These type of websites created using html and css languages.Due to the table tags in html it wiill take more time to load websites.
                 Html files can be saved in .html,.hml formats.
                 css is a cascading style sheets.There are two main things in css that is class is style and id is tag.
                 DOM is used in xml concepts.It will display the contents without any tags in browser.

2.Processing websites :
                  There are two types in processing that are,
                   1.Client side
                   2.server side

1.Client side :
                     javascript,jquery,ajax this are the examples of client side processing.
Javascript is used to validate the form.For example in gmail login form enter the username and without entering the password just click the login button,it will show the please enter the password.It means it will not connect to the database for validation just it will done the validation in client side itself.
                     Ajax is also used as client side processing it will validate the data without any loading page.For example  if u entered the letter in search box it will show the words starting with that letter.This can be done using this Ajax.
                     Jquery is used to add the animations and  graphics in websites.For example when u scroll the page image also scrolling like that.

2.Server side :
                       PHP,JSP can be used as server side scripting languages.For example when u give the username and password it will verify in database and its matches it wiill go to another page.This is the example of server side scripting.

                                 
                                       PHP

PHP stands for PHP: Hypertext Preprocessor
PHP is a server-side scripting language, like ASP
PHP scripts are executed on the server
PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)

PHP can be saved as .php,.php3,.phtml

SERVERS
 lamp - Linux Apache Mysql Php
 wamp - Windows Apache Mysql Php
 Xamp
Zend server - which is developed the php

Syntax :

A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document.


<?php
?> 
example :
 ?php
echo "Hello World";
?
comment :
// single line 
/* multiple line */
Data types :
int, float,array,object,string,resource,boolean this are the data types supported in PHP
Variable declaration :
Variables are used for storing values, like text strings, numbers or arrays.
All variables in PHP start with a $ sign symbol.

$var_name = value; 
example :
<?php
$txt="Hello World!";
$x=16;
?>