What is PHP?
- PHP is a general-purpose scripting language originally designed for web development to produce dynamic web pages.
- PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document.
- It also has evolved to include a command-line interface capability and can be used in standalone graphical applications.
- PHP is an open-source language, used primarily for dynamic web content and server-side applications. It is often pointed to as the main competitor with:
- Microsoft's C# - Visual Basic.NET - ASP family,
- Sun's Java - JSP.
- Macromedia's ColdFusion .
- CGI - Perl.
- Start by creating a blank file using any program that can save in plain text format. Save your file as a .PHP file, for example mypage.php.
- Saving a page with the .php extension tells your server that it will need to execute the PHP code. Enter the statement to let the browser know the PHP code is done.
- Every section of PHP code starts and ends by turning on and off PHP tags to let the server know that it needs to execute the PHP in between them. Here is an example: Everything between the is read as PHP code.
<?php
code...
?>
-------------------
No comments:
Post a Comment