Monday 31 December 2012

Beginners PHP Tutorial





PHP is a powerful tool for making dynamic and interactive Web pages.
PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.


Following are some of the links which you can follow : 


1. http://www.homeandlearn.co.uk/php/php.html

2. http://www.w3schools.com/php/default.asp

3. http://www.tizag.com/phpT/

4. http://www.tutorialspoint.com/php/index.htm

Friday 28 December 2012

WAMP Server Installation Guide for Windows 7 32/64 Bits






WAMP (Windows, Apache, MySQL and PHP)





WAMP is all in one packages which installs the basic programs, you will need to get a localhost running and to be able to build and run PHP scripts.
The WAMP server installation tutorial helps you to tune the server without the need of touching the configuration files. Once the WAMP server installation completes successfully, you have the trayicon for the management of server and all its settings. You can visit Hostgator review to have an idea about website hosting.
Let’s start from scratch to build PHP environment on windows 7 64 bits operating system by using 
Wamp Server (64 bits & PHP 5.3) 2.2E
Same installation steps are used for windows 7 32 bits operating system 

WampServer Official Site

This awesome server can be found for download at official web page WampServer. Let’s Run through the Installation first and then I’ll go in to detail about the administration.

                          WampServer Official We Site

Step 1

You will find two options for the selection of WampServer for your windows 7 after clicking on “Download” link at the main navigation of WampServer official site.
Here I am showing an example of installing Wamp Server (64 bits & PHP 5.3) 2.2E bits version.

                      WampServer (64 bits & PHP 5.3) 2.2E

You can download WampServer by clicking on the link "you can download it directly".


Step 2

Downloading of WampServer (64 BITS & PHP 5.3) 2.2E is complete, and you will notice WampServer icon at your download location.

                       WampServer Download Complete

Step 3

It is the time to install WampServer on our windows. You will receive a Security Warning after opening WampServer file. It is absolutely normal to run WampServer setup on windows.


                 Instalation Starting of WampServer

Step 4

You will see a standard setup wizard of windows after clicking Run button on security warning dialog.

                 

                                                  WampServer 2 Setup Wizard

Step 5

You have to agree the license of WampServer before selecting installation destination at your windows machine.

                                  License Agreement

Step 6

It is very important step of WampServer installation. I will recommend to install WampServer at the drive other than Windows 7 installation. Suppose your Windows 7 is install in C drive so you should install WampServer on D, E or any other location in hard drive except C drive.
I am going to install WampServer in D drive. Now you can click on Next button after selecting installation location for WampServer 2.1d.

                   Select Destination Location of WampServer

Step 7

When you click on the Next button then a Select Additional Tasks dialog will appear on your screen, if you would like setup to perform while installing WampServer 2. You can check following options,
  • Create a Quick Launch icon
  • Create a Desktop icon
I have not interested to create any icon in the above locations, but you can do. You will be at “Ready  to Install” window after clicking Next button.

                           Select Additional Tasks

Step 8

Setup is now ready to begin installing WampServer 2.1d on your computer. Click on Install button to start installation of WampServer 2.1d.

                      WampServer 2.1d Ready to Install

Step 9

Now your WampServer is starting to install in your computer.

                           WampServer Installing

Step 10

You will receive a dialog for choosing your default browser for WampServer. You can choose your favorite browser for WampServer as default, or simply click “Open” if you are not sure about the installation or executable files of your favorite browser. WampServer will choose “Internet Explorer” as default choice.

                        Choice of Default Browser

Step  11

WampServer installation has completed now and setup will guide you for Apache configurations in the next steps.

                         Complete The Installation

Step 12

You will notice a “Windows Firewall” standard dialog while configuring Apache by WampServer. (You may not observe this, if your windows firewall is not active). Click on “Allow Access” by leaving default options as such to proceed for PHP mail parameters.

                          Apache HTTP Server

Step 13

After allowing access to Apache server, you are at SMTP server configuration dialog. You can specify the SMTP server and the address mail to be used by PHP when using the function mail(). I will recommend the following values,
  • SMTP: localhost
  • Email: Your email address.
Click “Next” after putting the above values for the installation final dialog.

                               PHP Mail Parameters

Step 14

You have successfully installed WampServer 2.1 d along with Apache, MySql, PHP, phpMyAdmin and SqlBuddy at your computer.
Click “Finish” to start WampServer along with other services. Leave “Launch WampServer 2 now” check-box checked to start WampServer automatically after installation.


                 WampServer 2 Setup Wizard Completion

Step 15

Now you can see WampServer icon on the taskbar. WampServer icon has three states.
  • Red
  • Yellow
  • Green

Red:
WampServer red icon is showing that WampServer is Offline and no service has been started yet i.e Apache, PHP and MySql.


                                        WampServer Offline

Yellow:
WampServer red icon is show that WampServer is still Offline and any service among Apache, PHP and MySql has been failed to start.


                                 WampServer is Still Offline

Green:
WampServer is working normal along with all services and your development server is ready to use.


                  Green WampServer Icon ( Online)

Step 16

It is time to test our WampServer with the installed services of Apache, PHP, MySql and phpMyAdmin. Please follow the steps to test WampServer at Windows 7.
  • Be sure, WampServer icon is green at taskbar
  • Open your favorite browser
  • Type, http://127.0.0.1/ OR http://localhost/
  • Hit Enter
You have successfully installed WampServer on your computer if you have seen the welcome screen of WampServer. You can read Server Configuration at WampServer welcome screen.
  • Apache Version: 2.2.22
  • PHP Version: 5.3.13
  • Loaded Extensions: Loaded extensions of PHP
  • MySql Version: 5.5.24

                         WampServer Welcome Screen

Step 17

You can launch phpMyAdmin console by one of the following means,
  • Click on phpmyadmin link on WampServer welcome screen
  • Type: http://127.0.0.1/phpmyadmin/ OR http://localhost/phpmyadmin/ in the browser address bar
  • Hit Enter
You will be at phpMyAdmin index to manage your MySql databases.

                                   phpMyAdmin
I hope you have successfully installed Wamp Server (64 bits & PHP 5.3) 2.2E at your computer. If you have any question, feel free to ask, and don’t forget to write your valuable comments.

What is PHP?




PHP is probably the most popular scripting language on the web. It is used to enhance web pages. With PHP, you can do things like create username and password login pages, check details from a form, create forums, picture galleries, surveys, and a whole lot more. If you've come across a web page that ends in PHP, then the author has written some programming code to liven up the plain, old HTML.

PHP is known as a server-sided language. That's because the PHP doesn't get executed on your computer, but on the computer you requested the page from. The results are then handed over to you, and displayed in your browser. Other scripting languages you may have heard of are ASP, Python and Perl. (You don't need to know any of these to make a start on PHP. In fact, these tutorials assume that you have no programming experience at all.)

The most popular explanation of just what PHP stands for is "Hypertext Pre-processor". But that would make it HPP, surely? An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools. At least you get the letters "PHP" in the right order!

But PHP is so popular that if you're looking for a career in the web design/web scripting industry then you just have to know it! In these tutorials, we'll get you up and running. And, hopefully, it will be a lot easier than you think.


Course Files

To follow along with these tutorials, you'll need our Home and Learn Course files. These can be downloaded from the following address: