Introducing PHP

0
Introducing PHP

Let me start by introducing PHP to you as a first major step to back development.

PHP is a server side scripting language that is used to develop Static websites or Dynamic websites or Web applications. PHP stands for Hypertext Pre-processor, that earlier stood for Personal Home Pages.

PHP scripts can only be interpreted on a server that has PHP installed.  The client computers accessing the PHP scripts require a web browser only.  A PHP file contains PHP tags and ends with the extension “.php”.

What is a Scripting Language?

A script is a set of programming instructions that is interpreted at runtime.  A scripting language is a language that interprets scripts at runtime. Scripts are usually embedded into other software environments.

The purpose of the scripts is usually to enhance the performance or perform routine tasks for an application.

Server side scripts are interpreted on the server while client side scripts are interpreted by the client application.

PHP is a server side script that is interpreted on the server while JavaScript is an example of a client side script that is interpreted by the client browser. Both PHP and JavaScript can be embedded into HTML pages, or it can be used in combination with various web template systems, web content management system and web frameworks.

PHP Pre-requisites

A PHP file can also contain tags such as HTML and client side scripts such as JavaScript.

HTML is an added advantage when learning PHP Language. You can even learn PHP without knowing HTML but it’s recommended you at least know the basics of HTML.

Database management systems DBMS for database powered applications.

For more advanced topics such as interactive applications and web services, you will need JavaScript and XML.

Why use PHP?

You have obviously heard of a number of programming languages out there; you may be wondering why we would want to use PHP as our poison for the web programming. Below are some of the compelling reasons.

Read more: Understanding HTML & CSS

PHP is open source and free.

Short learning curve compared to other languages such as JSP, ASP etc.

Large community document

Most web hosting servers support PHP by default unlike other languages such as ASP that need IIS. This makes PHP a cost effective choice.

PHP is regular updated to keep abreast with the latest technology trends.

Other benefit that you get with PHP is that it’s a server side scripting language; this means you only need to install it on the server and client computers requesting for resources from the server do not need to have PHP installed; only a web browser would be enough.

PHP has in built support for working hand in hand with MySQL; this doesn’t mean you can’t use PHP with other database management systems. You can still use PHP with Postgres, Oracle, MS SQL Server, ODBC etc.

More to learn: Understanding JavaScript?

PHP is cross platform; this means you can deploy your application on a number of different operating systems such as windows, Linux, Mac OS etc.

Here’s an example of PHP code

Example #1 An introductory example

<!DOCTYPE html>

<html>

<head>

<title>Example</title>

</head>

<body>

<?php

echo “Hi, I’m a PHP script!”;

?>

</body>

</html>

To learn more about PHP and how to apply it to your applications contact us.

We’ll like to Help Further?

TechForest SoftTechnologies Ltd. is a registered ICT Company in Nigeria.  We are committed to the eradication of poverty by sharing knowledge in the area of ICT and helping young people find their feet in the industry. This is our contribution to the ecosystem apart from handling IT Projects for organizations.

TechForest Academy is established for this purpose.  If you need further assistance or will like to contribute your knowledge in informing the teeming population of young people in the Niger Delta about Web Development or any sector of ICT please contact us.

We believe Information Technology can change the economic status of any nation or individuals, therefore, we at TechForest are committed to bring this knowledge to youths in this part of the world, Africa and beyond. Remember any level of partnership is a seed sowed to this project.

Some knowledge shared here were gotten from guru99 and php.net. Please contact us if you need a complete coaching in you want to become a developer.

LEAVE A REPLY

Please enter your comment!
Please enter your name here