March 28, 201214 yr Hey, I am very new to web designing, so far I have learnt HTML and CSS. I'm taking baby steps. I am now at the point where I want to find out more about web designing, including PHP. I have done some research about what PHP is and what it is used for, but it is a little bit confusing at this early stage for me. Can someone break it down for me in simple terms please: - What is PHP? - What is PHP used for? Thank you.
March 28, 201214 yr PHP is a server-side programming language that's used primarily for web apps (like CMS platforms). It can be used in fiendishly complicated ways, or for something as simple as cutting down on duplication by dynamically pulling in template fragments - the first bit of PHP people tend to find useful is something like this: <?php include('footer.php'); ?>
March 28, 201214 yr Just to add to the post above. PHP is server side coding. As it is installed on the server. You use it to create various things, such as the mechanics behind login forms. A login form would be coded in html, & then handled by php. Edited March 28, 201214 yr by LeonaG
March 30, 201214 yr Good analogy is: If HTML and CSS is addition, subtraction, divide and multiply (+ - / *) numbers You write out a set of rules / sums and they are used as is. PHP is algebra addition, subtraction, divide and multiply (+ - / *) letters You write out a set of equations and they are used many different ways.
March 31, 201214 yr PHP, stands for "PHP: Hypertext Preprocessor" "The main goal of the language is to allow web developers to write dynamically generated web pages quickly" - http://www.php.net/manual/en/preface.php but the php manual answers those two exact questions here: http://www.php.net/manual/en/introduction.php
Create an account or sign in to comment