PHP #1 : Introduction 01-27-2013, 08:27 AM
#1
PHP #1 : Introduction
By Hackarchives
Note: If you know about servers and basics about PHP you may skip this tutorial
Firstly we need to understand what exactly PHP is
PHP stands for PHP:Hypertext Preprocessor (Recursive acronym)
PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP - specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.
Now we have to understand why do we need to learn PHP
It is the most popular web developing language has extensive community and support.Even Facebook make use of PHP.It is required for dynamic web pages.You can do with java too but PHP is faster than java[i read it somewhere] and it is faster to develop in PHP.PHP files can contain text, HTML, JavaScript code, and PHP code. PHP processes the code on the server and output is in HTML form
Checkpoint: Before proceeding past this point make sure that you know basic HTML
Now since PHP works on web server you will need one to process it.Please Install these softwares to make sure you can execute PHP on your system.
Softwares:
Windows 7: WAMP
Linux: LAMP
Mac OSX: MAMP
We will be talking about WAMP though every time we refer to your server.
Now it's very simple to install wamp.You can do that yourself
Suppose you have installed it in c:/wamp .Then your files will be stored in c:/wamp/www .In web servers you need to place an index file so as to have a default loading of it when user browses to it. In our case index.php is placed in c:/wamp/www .
Now open your browser and go to http://localhost you will the default wamp page. It is the index file created by wamp and located in c:/wamp/www
Now you are ready to learn PHP.You just need a good text editor for PHP. I recommend using Notepad++ .
Download: Notepad++
Next Chapter
