PRESENTED BY
S.V.MALLIKHARJUNA
16HR1A0547
AGENDA
 INTRODUCTION
 TYPES OF SCRIPTING LANGUAGES
 FEATURES OF PHP
 BASIC SYNTAX OF PHP
 INSTALLIATION OF PHP
 HOW TO RUN PROGRAM IN PHP
 ADVANTAGES OF PHP
 DISADVANTAGES OF PHP
 CONCLUSION
INTRODUCTION TO PHP
 PHP stands for” hyper text pre-processor” or” personal home page”.
 PHP is a server side scripting language.
 PHP is used to develop dynamic web applications(website +database) and
interactive web pages.
 It was originally created by “RASMUS LERDORF” in 1994.
 PHP is a loosely typed language or weakly typed language.
 PHP current version is 7.4 release date is 28-nov-2019 and Supported until
28-nov-2022.
 PHP featue release 8.0 version release date Q4 2020 or Q1 2021 and
Supported until Q4 2023 or Q1 2024
TYPES OF SCRIPTING LANUAGE
 There are two types of scripting language.
 Client side scripting language.
 Server side scripting language.
 Client side scripting language:The programming which will execute within a
“web browser” is called as Client side scripting language.
 Example:javascript
 Server side scripting language: The programming which will execute within a
“web server” is called as server side scripting language.
 Example:PHP,DOTNET..etc
FEATURES OF PHP
 It is most popular and frequently used world wide scripting language.The main reason of
popularityis it is open source and very simple.
 Simple: It is very simple and easy to use, compare to other scripting language it is very simple
and easy, this is widely used all over the world.
 Faster: It is faster than other scripting language e.g. asp and jsp.
 Open source: Open source means you no need to pay for use php, you can free download and
use.
 Platform independent: PHP code will be run on every platform, Linux, Unix, Mac OS X,
Windows.
 Loosely typed language: PHP supports variable usage without declaring its data type. It will
be taken at the time of the execution based on the type of data it has on its value.
 For example $a=‘hello’
 echo $a
BASIC SYNTAX OF PHP
 <? Php -----------(opening tag)
 Echo “bvsr”;
 ?> ---------------(closing tag)
INSTALLIATION OF PHP
 we can install “XAMPP”
 X means:cross platform or platform independent.
 A means:apache.
 M means:mysql.
 P means:perl.
 P means:PHP.
 For emaple simple php program
 <!DOCTYPE html>
 <head>
 <title> registrationform</title>
 </head>
 <body>
 <form method="post">
Con..
 Enter Name:<input type="text" name="txt1"/>
 <br><br>
 Enter Email:<input type="email" name="txt2"/>
 <br><br>
 Enter Password:<input type="password" name="pwd"/>
 <br><br>
 <input type="submit" value="Register"name="btn"/>
 </form>
 </body>
 </html>
Con…
 <?php
 $conn=mysqli_connect("localhost","root","","user");
 if(isset($_POST['btn']))
 {
 $name=$_POST['txt1'];
 $email=$_POST['txt2'];
 $password=$_POST['pwd'];
 $query="insert into
register2(name,email,pwd)values('$name','$email','$password')";
Con….
 if(mysqli_query($conn,$query))
 {
 echo"register sucessfully";
 }
 else
 {
 echo"not register";
 }
 }
 ?>
HOW TO RUN PROGRAM IN PHP
 URL OPEN.
 SERVER MUST BE ON.
 URL ADDRESS:127.0.0.1/folder name/file name
 Or
 Local host/folder name/file name
Con…
Con..
Con..
Con..
Con…
ADVANTAGES OF PHP
 Cross-Platform:
PHP is, an application can be run on various platforms.
 Ease of use:Any individuals who are new to programming can easily learn to
use them within a short duration of time. The syntax for programming in the
hypertext preprocessor is quite similar to the C programming language. So the
individual who Is familiar with C can easily create PHP website scripts.
 Open source and Powerful library support
 Portability(platform independent)
 Third-party application support
DISADVANTAGES OF PHP
 Weak type: By the way, the PHP preprocessor hypertext language was
created, it’ll be tough to use it to program large applications. Since the
programming language isn’t extremely modular, large applications created
out of the programming language are tough to keep up. Furthermore, it’s so
an excellent language for web site scripting and developing small
applications.
 Poor Error Handling:It is widely believed by the developers that PHP has a
poor quality of handling errors. PHP lacks debugging tools, which are needed
to search for errors and warnings. PHP has less number of debugging tools
when compared to other programming languages.
CONCLUSION
 PHP is one of the most popular programming languages. It is currently being
used by a large number of individual for creating numerous types of
applications.
 It is primarily used as a server-side scripting language for websites. There are
however some advantages and disadvantages of PHP framework. To reap the
PHP benefits, select the best PHP website development company who
provides customized PHP website development services at pocket-friendly
prices.
Php

Php

  • 1.
  • 2.
    AGENDA  INTRODUCTION  TYPESOF SCRIPTING LANGUAGES  FEATURES OF PHP  BASIC SYNTAX OF PHP  INSTALLIATION OF PHP  HOW TO RUN PROGRAM IN PHP  ADVANTAGES OF PHP  DISADVANTAGES OF PHP  CONCLUSION
  • 3.
    INTRODUCTION TO PHP PHP stands for” hyper text pre-processor” or” personal home page”.  PHP is a server side scripting language.  PHP is used to develop dynamic web applications(website +database) and interactive web pages.  It was originally created by “RASMUS LERDORF” in 1994.  PHP is a loosely typed language or weakly typed language.  PHP current version is 7.4 release date is 28-nov-2019 and Supported until 28-nov-2022.  PHP featue release 8.0 version release date Q4 2020 or Q1 2021 and Supported until Q4 2023 or Q1 2024
  • 4.
    TYPES OF SCRIPTINGLANUAGE  There are two types of scripting language.  Client side scripting language.  Server side scripting language.  Client side scripting language:The programming which will execute within a “web browser” is called as Client side scripting language.  Example:javascript  Server side scripting language: The programming which will execute within a “web server” is called as server side scripting language.  Example:PHP,DOTNET..etc
  • 5.
    FEATURES OF PHP It is most popular and frequently used world wide scripting language.The main reason of popularityis it is open source and very simple.  Simple: It is very simple and easy to use, compare to other scripting language it is very simple and easy, this is widely used all over the world.  Faster: It is faster than other scripting language e.g. asp and jsp.  Open source: Open source means you no need to pay for use php, you can free download and use.  Platform independent: PHP code will be run on every platform, Linux, Unix, Mac OS X, Windows.  Loosely typed language: PHP supports variable usage without declaring its data type. It will be taken at the time of the execution based on the type of data it has on its value.  For example $a=‘hello’  echo $a
  • 6.
    BASIC SYNTAX OFPHP  <? Php -----------(opening tag)  Echo “bvsr”;  ?> ---------------(closing tag)
  • 7.
    INSTALLIATION OF PHP we can install “XAMPP”  X means:cross platform or platform independent.  A means:apache.  M means:mysql.  P means:perl.  P means:PHP.  For emaple simple php program  <!DOCTYPE html>  <head>  <title> registrationform</title>  </head>  <body>  <form method="post">
  • 8.
    Con..  Enter Name:<inputtype="text" name="txt1"/>  <br><br>  Enter Email:<input type="email" name="txt2"/>  <br><br>  Enter Password:<input type="password" name="pwd"/>  <br><br>  <input type="submit" value="Register"name="btn"/>  </form>  </body>  </html>
  • 9.
    Con…  <?php  $conn=mysqli_connect("localhost","root","","user"); if(isset($_POST['btn']))  {  $name=$_POST['txt1'];  $email=$_POST['txt2'];  $password=$_POST['pwd'];  $query="insert into register2(name,email,pwd)values('$name','$email','$password')";
  • 10.
    Con….  if(mysqli_query($conn,$query))  { echo"register sucessfully";  }  else  {  echo"not register";  }  }  ?>
  • 11.
    HOW TO RUNPROGRAM IN PHP  URL OPEN.  SERVER MUST BE ON.  URL ADDRESS:127.0.0.1/folder name/file name  Or  Local host/folder name/file name
  • 12.
  • 13.
  • 14.
  • 15.
  • 17.
  • 18.
    ADVANTAGES OF PHP Cross-Platform: PHP is, an application can be run on various platforms.  Ease of use:Any individuals who are new to programming can easily learn to use them within a short duration of time. The syntax for programming in the hypertext preprocessor is quite similar to the C programming language. So the individual who Is familiar with C can easily create PHP website scripts.  Open source and Powerful library support  Portability(platform independent)  Third-party application support
  • 19.
    DISADVANTAGES OF PHP Weak type: By the way, the PHP preprocessor hypertext language was created, it’ll be tough to use it to program large applications. Since the programming language isn’t extremely modular, large applications created out of the programming language are tough to keep up. Furthermore, it’s so an excellent language for web site scripting and developing small applications.  Poor Error Handling:It is widely believed by the developers that PHP has a poor quality of handling errors. PHP lacks debugging tools, which are needed to search for errors and warnings. PHP has less number of debugging tools when compared to other programming languages.
  • 20.
    CONCLUSION  PHP isone of the most popular programming languages. It is currently being used by a large number of individual for creating numerous types of applications.  It is primarily used as a server-side scripting language for websites. There are however some advantages and disadvantages of PHP framework. To reap the PHP benefits, select the best PHP website development company who provides customized PHP website development services at pocket-friendly prices.