Lesson content
Read, practise, then check your understanding
XAMPP is a cross-platform local bundle, LAMP targets Linux, and WAMP targets Windows. Containers or separate services can better match production. Development and production configuration must remain distinct.
Practical example
<?php
echo PHP_VERSION, PHP_EOL;
echo php_ini_loaded_file(), PHP_EOL;
Verify with php -v, php -m, and php --ini. The built-in php -S 127.0.0.1:8000 -t public server is local-only. Display errors locally, log them in production, install only required extensions, and keep configuration, vendor internals, and uploads outside the public document root.
Knowledge check
Answer every question correctly to complete this chapter.
0 of 10 checks passed
Your progress is saved on this device.