Thuta Learning
BasicProgrammingbeginner

Get Started (Setup)

Relax. We'll talk through this in plain words — no textbook voice.

Since PHP is a server-side language, you need a server environment on your local computer. The easiest option for beginners is XAMPP. XAMPP already bundles the Apache web server, the MariaDB/MySQL database, and PHP, so once you install it, you can start writing PHP right away.

php
<?php
// test.php ဆိုပြီး C:/xampp/htdocs ထဲမှာ သိမ်းပါ။
// Browser မှာ http://localhost/test.php ကိုဖွင့်ပါ။
phpinfo();
?>
You should see
An information page appears showing the PHP version, loaded extensions, and a configuration table.

Easy traps

  • Don't type C:/xampp/htdocs/test.php directly into the browser address bar — type http://localhost/test.php instead.
Get Started (Setup) | Thuta Learning