Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Introduction To PHP

PHP is server-side and scripting  languages in existence today. The lan…
Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Introduction To PHP


Image result for PHP

PHP is server-side and scripting languages in existence today. The language has the ability to communicate back and forth with a server and create a dynamic web page for the user. If you have a web hosting account to run your personal blog or website, I can guarantee that PHP is already installed. Even the page you are looking at right now was created by PHP. If you have ambitions of becoming a web developer, PHP is a must for you and will allow you to create dynamic web pages based on external input, usually from the user. 
It is also important to note that PHP is an object-oriented programming language, and O.O.P. is one of the things we will cover in the series.



To learn PHP you need to have some basic knowledge in Programming . Getting a grasp of the basic programming concepts might be easier in a language such as Visual Basic as the syntax and concepts in PHP might be quite confusing for a beginner. If you have no experience in scripting, I might also suggest taking a look at JavaScript which is a client-side scripting language, making it limited when compared to PHP. But don’t let that scare you, PHP teaches some great coding habits and if you are capable of picking things up quickly then you should be just fine. Let’s take a little look at the syntax first, here’s how you would tell PHP to output the text “Welcome to my website” to a browser:

<?php
echo 'Welcome to my website';
?>

It all looks pretty logical, right? You are echoing out the sentence enclosed in the quotation marks to the web browser. And each statement in PHP must end with a “;” to notify the processor module that we have ended our statement. New lines and blank space are not recognized. You must also wrap PHP code inside “<?php” and “?>” tags to notify the server when a PHP script will start and end. So if you think you are ready to start learning PHP, click on the first video just below this paragraph to begin learning. I hope you find the free tutorials useful.