PHP is a server-side scripting language developed by Rasmus Lardorf in 1994. Which is specifically used to create any dynamic and interactive web development or web based software and web based applications. It is now also called General Purpose Programming Language.

That is, everything that can be done with other programming languages ​​can be done with PHP. Also PHP is more popular with web programmers as it is open source. However, it is most commonly used in web development, web-based software and web-based applications. PHP also provides maximum security when storing information on the web. PHP can be used in conjunction with HTML.

Several Advanced OpenSource Content Management Systems (CMS) including WordPress, Joomla are made by PHP. Custom content management systems can be created using PHP. PHP is also widely used in e-commerce, management, online banking software, etc.

PHP is a very popular language, according to w3techs, 82% of the world’s web sites use PHP in server side scripting. Currently 90% of freelancers in Bangladesh (i.e. those who work from home and abroad) work through PhP language.

What do I need to know before learning PHP?

What are the things you need to know about computer programming before learning PHP? What is the web? What is the Internet? There should be ideas on databases, and MySQL etc. Without it, if you know HTML, CSS, you will enjoy learning PHP.

What kind of computer do you need to learn PHP? Need to install any software?

The latest operating systems such as windows-7, windows-8, windows-10 or those that work on Linux, such as: ubuntu-15, ubuntu-16 should be a computer that supports any.

There are three other types of software you need to install:

1. Server software such as: XAMPP, WAMP, EasyPHP etc. All of these softwares are free and open source. And these softwares are basically the sum of everything you need for a web development environment setup.

2. Code writing software such as: SublimeText, Notepad++, NetBeans, Aptana, Eclipse etc. All of these softwares are free and open source.

3. And any browser to see the output, such as: Mozilla Firefox, Google Chrome, Opera, safari etc. Those who use Windows OS can continue working with the Edge browser.

I have installed the server software XAMPP. Now what do I need to do to write the first PHP code?

First you need to go to the control panel of the XAMPP server and turn on the Apachi and MySQL services. Once turned on, make sure the two services are green, yellow or red. Notice the image below:

Then create a folder called test (this can be any name) for yourself in the xampp / htdocs folder on the drive on which you installed the XAMPP Software, notice the following image:

Now type the following code in your code editor:

And save it to your test folder as hello.php, notice the image below:

Now go to your browser and type http://localhost/test/hello.php and enter, notice the image below:


Please enter your comment!
Please enter your name here