Thuta Learning
ရှာဖွေရန်
BasicProgrammingbeginner

Get Started (Setup)

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

PHP က server-side language ဖြစ်တာကြောင့် local computer မှာ server environment တစ်ခုလိုပါတယ်။ Beginner အတွက် အလွယ်ဆုံးက XAMPP ပါ။ XAMPP ထဲမှာ Apache web server, MariaDB/MySQL database, PHP တို့ပါပြီးသားဖြစ်လို့ တစ်ခါ install လုပ်တာနဲ့ PHP စမ်းရေးလို့ရပါတယ်။

php
<?php
// test.php ဆိုပြီး C:/xampp/htdocs ထဲမှာ သိမ်းပါ။
// Browser မှာ http://localhost/test.php ကိုဖွင့်ပါ။
phpinfo();
?>
You should see
PHP version, loaded extensions, configuration table များပါသော information page တစ်ခု ပေါ်လာမည်။

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • C:/xampp/htdocs/test.php ကို browser address bar မှာရေးတာမဟုတ်ပါ။ http://localhost/test.php လို့ရေးပါ။
Get Started (Setup) | Thuta Learning