PHP Setup

Neil Haddley • August 25, 2024

Setup

PHPsetupwebserver

I set up PHP on macOS. PHP is a server scripting language for building dynamic and interactive web pages.

brew install phpTap the image to open it full size

brew install php

php -vTap the image to open it full size

php -v

php -S localhost:8000Tap the image to open it full size

php -S localhost:8000

https://localhost:8000Tap the image to open it full size

https://localhost:8000

PHP IntelephenseTap the image to open it full size

PHP Intelephense

Code Runner (optional)Tap the image to open it full size

Code Runner (optional)

I used Code RunnerTap the image to open it full size

I used Code Runner

php -S localhost:8000Tap the image to open it full size

php -S localhost:8000

https://localhost:8000/prog.phpTap the image to open it full size

https://localhost:8000/prog.php

phpinfo()Tap the image to open it full size

phpinfo()

I used phpinfo() to check configuration settingsTap the image to open it full size

I used phpinfo() to check configuration settings

form.htmlTap the image to open it full size

form.html

action.phpTap the image to open it full size

action.php

https://localhost:8000/action.phpTap the image to open it full size

https://localhost:8000/action.php