PHP is one of the most powerful languages of the web. PHP is an application server as well as a programming language that has the capability to do loads of stuff like generate dynamic HTML, connect to databases, apply programming logic to the website code, server side scripting, form handling etc. It is one of the most widely used scripting languages. In order to get it running, you will need to have a basic setup preconfigured which we'll cover later in the course. Just to give you all a head's up, we will start with the trivial "HELLO WORLD" program.
Test Code : ( Use this code to display Hello World! in the console )
<?php echo "Hello, World!"; ?>
Watch the video below for more.
Test Code : ( Use this code to display Hello World! in the console )
<?php echo "Hello, World!"; ?>
NOTE: Don't worry about anything else you see on the screen just focus on the code and rest will be discussed later in the tutorials.
Save the file as "Hello.php" in the DOCUMENT ROOT of your web-server; for XAMPP users like me its the HTDOCS folder in the installation directory of your XAMPP stack. The .php extension defines that its a PHP file and you'll be good to go.
Watch the video below for more.
Comments
Post a Comment