Search Support
contact us

Let Us Make it Easy for You. Call 1-877-898-3290 for MyTime Support™. Learn More

What Is PHP?

Article Rating: 2 / 5 Votes: 19

PHP (Hypertext Preprocessor) is a server-side, HTML embedded scripting language used to create dynamic Web pages on a Unix based platform.

In an HTML document, PHP script is enclosed within special PHP tags. Because PHP is embedded within tags, the author can jump between HTML and PHP instead of having to rely on heavy amounts of code to output HTML. PHP is executed on the server.

PHP's strength lies in its compatibility with many types of databases. PHP can talk across networks using IMAP, SNMP, NNTP, POP3, or HTTP.


A simple PHP-Script looks like this:

<html>
<head>
<title>My first PHP-Script</title>
</head>
<body>
 <?php
    echo "Hello World";
    echo "Today is ".date("d.m.Y");
 ?>
</body>

</html>

 

The output for this is:

Hello World

Today is <current date>