Getting Started with PHP

What is PHP? PHP is extremely popular free scripting language used for adding dynamic functionality to web pages. It can be embedded in html. Web server needs to be PHP enabled for processing PHP. PHP is a server side language which means browsers can not interpret PHP. Web server automatically parses PHP code (PHP must be deployed on web server, which is true in most cases) and generates HTML before the code is passed to web browser for display.

Syntax

  • PHP code starts with . Any code outside of PHP tags is not parsed.
  • Variables start with $ symbol and are case sensitive.
  • // is used to add comment on a line, and /* */ is used for adding comment in a block on multiple lines.
  • Echo function is used for generating output for the browser.
  • Syntax is quite similar to other languages particularly Perl and C. Here is full PHP manual.

Here is a short tutorial for quickly getting started with PHP.

Related Posts

Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email will not be published. Required fields are marked *

*
*