Wednesday, August 02, 2006

That was Easy. Now What?

Now that you have EasyPHP installed, let's see how we use it to develop and modify all of our websites. The best part is that to use this development server you don't even need to be connected to the Internet.

Taking off from my previous post, let's make sure EasyPHP is running. When the application is running you should see an E with a blinking red light in the lower right taskbar.

Now that we have confirmed that Apache and MySQL are running, open up your web browser. In the address bar type in http://localhost. This is the default DNS that every computer looks to itself. Localhost is actually IP address Feel free to try that number in your web browser's address bar. You should see the same page unless you are behind a proxy or firewall that does not allow IP addresses. The page you see is the index file located in the www folder that EasyPHP looks into for your websites.

Let's go to that folder and see where we will placing all of our test sites. If you did not change the default location when installing, then the folder will be located in C:\Program Files\EasyPHP 1-8\www. When you click inside the folder you will see the index file I was talking about.

Now let's add a simple website to your development server. I'll create a folder in the www folder named MyFirstWebsite. What you name your folder will be the root domain of your website. The root domain is the first level of your website. This is why we have to follow the naming rules for web addresses, no spaces and no special characters. By default the web server will look for a file named index.html, index.php, or index.shtml to serve up to the web browser.

Create a file named index.html or index.php using whatever web page software you are comfortable with. I use Dreamweaver and SciTE text editor for different programming languages. You can also copy the code below into a text editor like Notepad and save the file in the folder MyFirstWebsite as index.php.

Now let's test our website. Go to your web browser. Access your website either by typing in http://localhost and choosing the MyFirstWebsite folder or to go directly to the website type in http://localhost/MyFirstWebsite.

You should see this screen. Hopefully you can see that you can edit and then see a web page that has a .php extension. The only caveat is if the php page has to connect to a database to get the information it serves to viewers. If this is the case (since I will talk about setting up databases are in the next segment) then it will give you an error message.

Next epsiode.......The AMP circle and databases


At 11:08 PM, Anonymous Morgan said...

Thank you for posting the information about easyphp. I have been searching the Internet for this info. I am very interested in seeing how to use dreamweaver with easyphp.

At 11:01 AM, Blogger Deon Metelski said...

What exactly do you want to know? I will give some tips in an upcoming post for you.


Post a Comment

Links to this post:

Create a Link

<< Home