ProAnswers.org

How do you configure your system for AJAX and PHP?

  1. The first step is to install a webserver. If you haven’t installed one already, you have two choices: either install each component separate or install an already packaged bundle.

a) If you choose to install the bundle, there are many choices available to you. You can try Xampp or Wamp. Those two bundle will install for you Apache Web Server - a web server -, MySQL - a database server -, PHP - the programming language - and some other server related stuff such as an FTP server. When the installation is complete pass to the next step.

b) If you choose to install the components separated, you’ll need a web server, a database server and PHP. For the web server, the recommendation is Apache Web Server ( http://httpd.apache.org/download.cgi ). For PHP, taking the latest version is the best ( http://www.php.net/downloads.php ). For the database, MySQL is widely used with PHP and Apache ( http://dev.mysql.com/downloads/ ).

  1. Determine if an AJAX framework will be used. If using a framework is chosen, the most common framework and jQuery ( http://jquery.com/ ) and Prototype ( http://www.prototypejs.org/ ).

  2. Write your code!

There is also an option if you don’t want to learn AJAX and JavaScript. The xajax Project ( http://xajaxproject.org/ ) lets you write your code in PHP and translates it into AJAX for you.