When PHP code is compiled and run, it results in HTML. This HTML is then sent to the browser that is requesting a web page. PHP is extremely useful for creating dynamic web pages. The content of these pages can constantly change depending on what information the PHP code is given. This is done by means of variables and functions (which you are familiar with from other programming language). Let's set up our PHP environments and start coding!
csdb.csc.villanova.edu, then you won't need to install anything! It includes everything we need to develop dynamic webpages -- PHP, an Apache web server and MySQL database server. Follow these instructions to test the PHP environment on
If you use your own computer for developing dynamic websites (the database project in particular), then you'll most likely need to download a complete server environment. Most computers don't come with PHP installed. An exception is Mac OS, but you'll still want to install a server environment even if you are on a Mac.
There is a large number of these environment packages available. For a testing server that simulates a real world Web server, XAMPP is the perfect choice. It lets you create databases, build dynamic Web pages, and view them right on your own computer making it easier for you to build and test database-driven Web sites. XAMPP is essentially an Apache Web server, PHP, MySQL database server, and other software rolled up into a single package that you can install on your computer.
(Note: You may also use MAMP if you are on a Mac, and WAMP if you are on Windows, but here we provide instructions for XAMPP only.)
Download and Install XAMPP on Windows
Download and Install XAMPP on Mac