Ads 468x60px

Featured Posts

Thursday, 28 June 2012

home page


             PHP started out as a small open source project that evolved as more and more people found out  how  useful   it was. Rasmus Lerdorf unleashed the first version of PHP way back in 1994.

                      
  •   PHP is a recursive acronym for "PHP: Hypertext Preprocessor".
  •   PHP is a server side scripting language that is embedded in HTML. It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites.
  •   It is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.
  •   PHP is pleasingly zippy in its execution, especially when compiled as an Apache module on the Unix side. The MySQL server, once started, executes even very complex queries with huge result sets in record-setting time.
  •   PHP supports a large number of major protocols such as POP3, IMAP, and LDAP. PHP4 added support for Java and distributed object architectures (COM and CORBA), making n-tier development a possibility for the first time. 
  •  PHP is forgiving: PHP language tries to be as forgiving as possible.
  •   PHP Syntax is C-Like.

Monday, 4 June 2012

day 2 variables and constants...

constants:- it is does not change its value at the run time is known as constants.
how to define a constants with example with syntax:-

syntax:-

define ("constant_name','constant_value');

example:-define (pie,3.14);

data types :-

    1. integer 

      float value

      string

      boolen 

      null

      note:-if in php the value given in (' ') quotes it is treats as a strings.

      variables: -

      change it value at run time it is known as variables

      syntax:-  $variable_name=value;

      how to use a variables:

      $variables_name ;

      operators:-1.assignments

      2.  arithmatic 3. condition 4. logical

      example:<?php

                      $a+=5;

                     $a=$a+5;

                     $y=$a;

      echo"$y=";

      ?>

       

       

        


     

Saturday, 2 June 2012

day 1 basic concepts of php

Q:- what is php ?
Ans:-  php Hypertext Preprocessor or personal home page .
it is a widely-used open source general-purpose scripting language .
basic example of php language ...
example 

        <?php
            
echo "Hi, I'm a PHP script!";


        
?>

here:-
<?php - it is known as opening state.

?> - it is known is closing state.

it every user  find why we used php language ? and why we used php language ?
don't matter for confusion .
whats requirement for php language ?
  1. server there are four types 1-wamp, 2- lamp, 3- mamp, 4- xamp,
  2. dreamweaver
  3. not any for hardware and software requriments it is free of cost available.
why is the differences between dot net and php ?
  • php is open source  technology but dot net is not.
  • it is free of cost
  • not hardware and software requriments.
  • it is run any types of systems like linux, mac , win bassed etc. 
  •  
  1. software requriments;-
  2. server appache
  3. php interpreter
  4. database- mysql
  5. server as define as above-
 note:- how to display our output:
  1.   we used three types of 
  2. echo
  3. print()
  4. print_r()-it is used for array only...