Dr. Garrett's Student Website
School of Business
Eastern Illinois University

Preparing to Program in Php

If you want to develop Php programs for this course on your own computer, you will need the following:

  • A running version of Apache Server or IIS.  Note that IIS is built into XP and Vista and can be enabled through the add/remove programs dialog.
  • You will need a copy of Php running on your web server
  • You will need to install a copy of MySQL on your system

There are several ways you can accomplish this:

  • If you have XP or Vista running on your computer, you can enable IIS and then load Php and MySQL.  You will run your programs as localhost.
  • If you have XP or Vista running on your computer, you can install VMWare Player and run a virtual machine to act as your server.  I can provide a DVD that contains a virtual machine for Ubuntu Linux, version 7.10, which is a preconfigured LAMP server (Linux, Apache, MySQL, and Php).  You can do your development within that environment and test your programs from there while running the virtual machine.  NOTE:  You will need at least 1.5 mb of RAM on your host machine if you choose this option.
  • If you have a Mac, you can run VMWare player on it and do the same as above.
  • Probably the best solution is to download and install WAMP server (open-source).  Note that this runs in windows only (not Mac).

If you don't have your own computer, you will need to develop your programs using a text editor like notepad, or by using Dreamweaver to do your editing.  You will then need to upload the programs to the class server via ftp to test them.

Integrated Development Environments (IDE)

If you want to try an IDE, you can try downloading a version of Eclipse that handles Php.  This works well and is free.  Optionally, there are several good IDE commercial IDEs for Php, but they all must be purchased.

To download Eclipse, click this link and then select the Windows pdt all-in-one file.  That downloads and installs Eclipse with the necessary Php plug-ins.

Another alternative is to download notepad++, an open-source editor that handles php syntax and also can include a built-in ftp connection (add the ftp-synchronize plugin).

On the commercial product side, Dreamweaver handles php and there is also a product called Delphi for Php that is excellent (and has some built-in additional tools).  Both of these have educational pricing.  Microsoft's Expression Web environment also handles php (version 2 and above).

Testing

If you set up your own test environment, you can test your Php programs on your own computer.  

You may also test your programs on other servers if you have access to them (from web providers), however you need to make sure that Php and MySQL are enabled on those servers.

If you do not wish to install your own testing environment, you can use the class server for testing.  Ultimately, your projects will need to be uploaded to it anyway, so feel free to use it for intermediate testing.  If you choose to do that, just make sure that your final product is the one that executes as of the due date.

Php programs will NOT execute in your pen server webspace.

Uploading Programs to Your Class Server Webspace

For grading, all programs must be uploaded to the class server.  This is generally done with an FTP interface, using whatever FTP client you wish, or using the ftp access capabilities built into Dreamweaver or Expression Web (or whatever editor you might be using).  You will be given, via WebCT email, a username and password for FTP access.  Using those, here is the other information you will need (substitute your username and password where "username" or "password" are indicated):

  • Name of Server:  ftp.ngarrett.info
  • Directory:  / or blank
  • Port:  21 (ftp)
  • URL of Your Site:  http://username.eiu-mis.net

You will need to set up a home page in your workspace.  There is already a blank home page in your workspace on the server.  You simply need to edit it or replace it with your own page.  Your home page should contain your name, the name of the class, and links to each of the assignments that you have posted, as they are completed.  There is a sample student home page already set up for you to look at.  You can get as fancy or plain as you want, so long as the requisite information is included there.