Assignments 03 Local Php

Assignments 03 Local Php

Local PHP

Running Local PHP Using MAMP

MAMP installs a local server environment on your macOS or Windows computer. It is free of charge and easy to install, and will not conflict with any existing Apache installation. Installation supports PHP as well as MySQL.

Running Local PHP Using XAMPP

XAMPP is a free and open-source cross-platform web server solution stack developed by Apache Friends, and consists of the Apache HTTP Server and MariaDB database, as well as PHP and Perl interpreters.

Running Local PHP Using the Built In Server

PHP 5.4 and later have a built in server that can be run from the terminal. This is intended solely for testing, and runs only one single-threaded process.

Pros and Cons

Running a PHP server locally allows for quick testing without depending on external factors that may impact server performance. There may be problems associated with running a local server, such as security and performance. Uploading to a server also gives you peace of mind when testing that you are seeing the same product that your end user will see.