Friday, 14 August 2015

PHP Syntax

<?php
// PHP code goes here
?>

1. A PHP script can be placed anywhere in the document.

2. The default file extension for PHP files you save with ".php".

3. A PHP file normally contains HTML tags, and some PHP scripting code.

4. Web page that may contain PHP (Hypertext Preprocessor) code; may include PHP functions that can process online forms, get the date and time, or access information from a database, such as a MySQL database.

5. The PHP code within the Web page is processed (parsed) by a PHP engine on the Web server, which dynamically generates HTML. The HTML, which contains the Web page content, is then sent to the user's Web browser. Therefore, the user never sees the actual PHP code contained in the Web page, even when viewing the page source.

No comments:

Post a Comment