Tuesday 14 August 2012

Day 1/10 of learning PHP/MySQL in 10 days

OK, so leave extra things out of mind and focus on learning !



Today is first day with PHP and usually, everybody get confused and start feeling dizzy when trying to learn new things, well, that happens to most of us, because we are not adventurous while learning new thing is completely an adventure !

You will need two softwares to run your php program, 


1st Sotware Needed is called Vertrigo Server" which we are going to use. Vertrigo is an application just like a linux server on Windows. So, i like linux so i am going to use it. However, you can use windows server or you can use XAMPP. The later is pretty good as well. I am choosing Vertrigo server becasue it's simple, free and problem free !

2nd Software / program is some sort of editor to create and update PHP files. Usually, Windows Notepad will work fine, but I would  recommend to get adobe Dreamweaver as it will show  you 90% of syntax errors etc. It's sort of great help to do programming in specific language in its own editor.

Click here to download vertrigo server free

Installation is pretty easy. Just run the setup. and If you are using windows system, Files will be saved under

C:\Program Files\VertrigoServ

our Working directory will be

C:\program files\VertrigoServ\www
Default Vertrigo Installation Directory

WWW - The working Directory, All PHP files will be stored inside WWW directory to work !



You can change the default installation directory structure if you want to. That's no problem. After installing Vertrigo server, you have installed everything required to run and test a php program.

PHP Syntax

Php syntax is as follow
PHP Start and End tags. All Php codes must be inserted within  both tags
First PHP Program

  1. Open Textpad / Notepad and create new file
  2. Now save the file with extension ".PHP" as test.php in C:\Progarm Files\VertrigoServ\www directory
  3. Write Start tags and End tags
  4. and write echo " My first output"; inside tags
  5. Open Your browser and write http://localhost/test.php
  6. But before that you must start Vertrigo server. 
   
Vertrigo Server Startup Screen

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. What is a casino? | Dr.CMC
    The 김해 출장마사지 casino is a large casino with a 안산 출장안마 large betting 세종특별자치 출장마사지 room and slots with a good amount of 아산 출장샵 cash. The casino is a 밀양 출장안마 small casino that's mostly on

    ReplyDelete