1 What is PHP? Tue Dec 07, 2010 12:03 am
Unknown Data
Registered Member
What is PHP? Learn PHP - part 1 |
Introduction I expect a basic knowledge of html and css before you start learning PHP. As in all my other lessons will I here try to illustrate the articles with examples to assist understanding. The subsequent lessons are very basic PHP, because I here have focused on a gentle introduction to the programming language. The lessons give you an understanding of PHP as server side language, and in the end will I do a little simple counter, that you can use on your website. The goal of subsequent sessions is to give you a basic knowledge about PHP and it's use as a server side programming language. What is PHP? PHP is a Open Source scripting language that specefies to web developning. It's a short for Hypertext Preprocessor and is a scriptting language. This means that the server perform/compose html document before it is sent to the client browser. It's also important to know that PHP files ends with .php, .php3, .php4 or .phtml. Here is a little example of what PHP is.
Hello world! Note the actual php code, that is enclosed in a special start whith "<?php" and the end with "?>". These tags allows you to jump into and out of "PHP mode". Echo command reproduce it as is in quotation marks. Remember to finish with the colon. What do I need? • To write own scripts, will you need a text editor like "Notepad" or "TextPad". If you use Windows will "NotePad" default be installed, if you use a Linux machine may you run the editor "WE". • To test your scripts, will you obviously need a server where PHP is installed and allowed. To make a test, can you try writing following code.
Save the code as test.php and upload it to your server. If PHP is allowed will a long list shows up, and you then can start whith PHP. In the next lesson, will we take a look at some other rules. |
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |
Last edited by Unknown Data on Thu Dec 09, 2010 10:12 pm; edited 1 time in total