PHP

Origin  and  uses  of PHP

  • PHP  was  developed  by  Rasmus Lerdorf  ,a member  of  the Apache group in 1994.
  • It's  initial   purpose  was  to provide  a  tool  to  help   Lerdorf  track  visitor's  to  his  personal  web site
  • In 1995  he  developed  a  package  called  Personsl Home   Page  Tools,which became first  publicly  distributed  version of   PHP
  • Originally,PHP  was  an   acronym  for  Personal Home Page.
  • Later  it's    user  community   began  using  the  recursive   name   PHP:Hypertext  Preprocessor 
  • PHP  is  a  server-side  XHTML-embedded scripting  language
  • As such,it  is  an  alternative  to  CGI,Microsoft's   Active  Server  Pages,Sun's  Java  Server  Pages(JSP),and Allaire's  ColdFusion
  • The  PHP  processor  has  two  modes   of  operaion,Copy  mode  and  interpret mode
  • It   takes  a PHP  document  file  as  input  and  produces  an XHTML  document file
  • When  the PHP  processor finds  XHTML  code  in  the  input file,it  simply copies  it  to  the  output  file
  • When  it  encounter's  PHP  script in  the  input file  , it interprets  it  and sends any  ouput  of  the  script  to  the  output file
  • This implies  that  the  output  from  a  PHP  script  must  be  XHTML  or  XHTML  embedded client-side script
  • This  new  file  is  sent  to  the  requesting  browser
  • PHP  uses  dynamic  typing,as  does  JavaScript   
  • PHP  has  an  extensive  library  functions,making  it  a flexible and  powerful  tool  for  server-side  software  deveopment

Posted on by