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 for 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 created 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 websites use PHP in server-side scripting. Currently, 90% of freelancers in Bangladesh (i.e. those who work from home and abroad) work in 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.

What other type of software do you need to install:

  1. Server software such as XAMPP, WAMP, EasyPHP, etc. All of this software is free and open-source. And this software is basically the sum of everything you need for a web development environment setup.
  2. Code writing software such as SublimeText, VSCode, PhpStrom, Notepad ++, NetBeans, Aptana, Eclipse, etc. All of this software is 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 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.

Then create a folder called test (this can be any name) for yourself in the xampp / htdocs folder on the drive where you installed the XAMPP Software.

Now type the following code in your code editor:

<?php
 
echo "Hello PHP World";
 
?>

And save it to your test folder as hello.php.

Now go to your browser and type http: //localhost/test/hello.php and press Enter.

Leave A Comment

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