Ads 468x60px

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...


0 comments:

Post a Comment