PHP


Also found in: Dictionary, Thesaurus, Medical, Financial, Acronyms, Wikipedia.

PHP

This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)

PHP

(PHP: Hypertext Preprocessor) An extremely popular scripting language that is used to create dynamic Web pages. Combining syntax from the C, Java and Perl languages, PHP code is embedded within HTML pages for server side execution. It is commonly used to extract data out of a database on the Web server and present it on the Web page. Originally known as "Personal Home Page," PHP is supported by all Web servers and widely used with the MySQL database. See MySQL.

The following example converts Fahrenheit to centigrade in PHP, which is used in conjunction with HTML (identified in boldface). The HTML code gets the number from the user, and the PHP performs the calculation.

 <?php
 if($_POST{
    $fahr = $_POST['fahr'];
    $celsius = ($fahr - 32)*5/9;
    }
 ?>
 <!DOCTYPE html><html><head><meta http-equiv="Content-Type"content="text/html; charset=UTF-8"><title>Fahrenheit to Celsius</title></head><body><form action="" method="post">Enter Fahrenheit: <input type="text"name="fahr" /><br />
  <?php
  if(isset($celsius)){
     echo "Celsius = ".$celsius;
     }
  ?>
   </form
  </body>
 </html>
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
References in periodicals archive ?
The PHP arrested 62 people for installing prohibited gas cylinders in their vehicles.
PHP's operating risk profile is mid-range, reflective of a combination of the system's track-record of strong margins historically, expectations of a return to strong margins in the long term, with considerably compressed results in the interim.
DIG PHP planted a sapling under the tree plantation campaign, announced 2nd class commendation certificates for officers, staff and caretakers of the Police Lines.
Its campuses which reported initial damages include Lallo Campus (PhP 46.4 M); Gonzaga Campus (PhP 36 M); Lasam Campus (PhP 35 M); Pia Campus (PhP 61.99 M); Andrews Campus (PhP 2 M); Craig Campus (PhP 4.6 M); and Aparri Campus (PhP 19,65 M).
"With the recent technological advances in the appellate landscape, it became imperative that Fremont Payne join with PHP to access PHP's knowledge and technology.
A master training program for 242 police officers and officials was also organized by Sub Inspector Ahsan Kazmi and Head Constable Azhar Hussain at PHP Post Bahria Town.
In 2004, before establishment of the PHP, 270 cases of highway robbery, 206 dacoities and 211 vehicle-snatching incidents took place, which has reduced, in 2017 to 392 and six, respectively in the beat area of PHP.
A website created with PHP will have quick information handling and simple usefulness.
PHP is the world's most popular server-side scripting language
The company said the EU approval was based on data from the first 30 patients enrolled in the HeartMate PHP SHIELD I CE Mark Trial examining use of PHP to support patients undergoing a high-risk PCI (percutaneous coronary intervention) procedure.