Basics about PHP

Posted By : Anchal Goel | 22-Dec-2014

Basics about PHP


- PHP is a server scripting language

- And a powerful tool for making dynamic and interactive web pages

- Widely used free, and efficient alternative to competitor's such as microsoft's ASP

For example,



<!DOCTYPE html>




echo "My first PHP script !";






My first PHP script !


- PHP scripts are executed on the server

- Before you continue you should have basic understanding of

  • HTML
  • CSS
  • Javascript

- PHP is an acronym for "PHP : Hpertext Preprocessor"

- Widely used, open source scripting language

- Powerful enough to be at cost of biggest blogging system on web ( Word Press ) !

- Deep easy enough to beginner's first server side language


PHP file


- Can contain text, HTML, CSS, Java script and PHP code

- Code are executed on server, and result is returned to browser as plain HTML

- Files have extension ".php"


PHP can do


- Generate dynamic page content

- Create, open, read, write, delete, and close files on server

- Collect from data

- Can send and recieve cookies

- Can used to control user access

- Can encrypt data




- Runs on various platforms ( windows, linux, unix, Mac OS X etc )

- Compatible with almost all servers used today ( Apache, IIS, etc )

- Supports a wide range of data

- Easy to learn and runs efficiently on server side




About Author

Author Image
Anchal Goel

Anchal is a bright QA engineer and when she is not finding bugs in applications , she spends her time listening to music, dancing, travelling and cheering people around her.

Request for Proposal

Name is required

Comment is required

Sending message..