Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts
ေရးသားသူ ထင္လင္းေအာင္
php ကို စၿပီးစိတ္၀င္စားမိတာက mysteryzillion ထဲကို၀င္ၾကည့္လုိ္က္လုိ႕ပါ။ php အေၾကာင္းေတြကို ကုိေစတန္တုိ႕ , phpcrazy တုိ႕, khumnk တုိ႕ ေရးထားတဲ့ php အေၾကာင္းေတြကို ဖတ္မိလုိ႕ပါ...

web developing ကို စိတ္၀င္စားတဲ့အတြက္ က်ေနာ္ေလ့လာမိပါတယ္။ w3schools,
phpabout တုိ႕ကိုလည္းဖတ္ပါတယ္...နားမလည္တာရိွရင္ mz ကိုေမးတယ္....mz ကလည္း
ကြ်န္ေတာ္ေမးသမွ်ေျဖေပးပါတယ္...w3schools ကphp ဖတ္ၿပီးေတာ့ Mysql ကို
ဆက္ဖတ္တယ္...အဲဒီမွစၿပီးေခါင္းရွုပ္တာပဲ php and Mysql database ဘယ္လုိ
ခ်ိတ္ဆက္လဲ ဆိုတာ နားမလည္ဘူးဗ်ာ...

အဓိကနားမလည္တာက
//conect to server
mysql_connect("localhost","username","password")or die(mysql_error());

အဲဒီမွာ username ,password ကုိဘယ္လုိေပးမလဲဆုိတာ မသိဘူး....ေနာက္ဆံုးေတာ့
mz ကိုပဲေမးရတယ္...username and password ကို phpMyadmin မွာ ေဆာက္လုိ႕ရတယ္တဲ့...

click ->phpMyadmin->mysql(17)->Privilieges->Add a new user
ၿပီးရင္ User name,ေနရာမွာ ကိုယ္ေပးခ်င္တဲ့ name ေပး၊ host ေနရာမွာ localhost
Password ကိုယ္ႀကိဳက္တာေပးလုိ႕ရတယ္။ၿပီးေတာ့ ကြ်န္ေတာ္က Generate password ကို
ကလစ္ၿပီးေတာ့ copy လုပ္တယ္။ၿပီးရင္ Global Privilieges ကို Check All လုပ္၊
ၿပီးရင္ Go ကို ကလစ္လုိက္....username and passwordကို တည္ေဆာက္
လုိ႕ၿပီးပီဗ်ာ...

ဒါဆုိရင္ php and sql ကို connect လုပ္လုိ႕ရၿပီ....

php ေလ့လာလုိ႕ေကာင္းတဲ့ website ေတြကို share ခဲ့အံုးမယ္...
http://php.about.com
http://www.phpeasystep.com
http://www.php.net
http://www.phpf1.com
အဲ w3schoolsကိုေတာ့ မေျပာေတာ့ဘူးေနာ္...သိေနမယ္ထင္လုိ႕...

သူငယ္ခ်င္းေတြအားလံုး အဆင္ေျပပါေစဗ်ာ...
PHP
ေရးသားသူ ထင္လင္းေအာင္
I read about PHP on mz websites last month.So I am getting
interested in PHP lnaguage.I am studying PHP now.I want you
to know about PHP all of my frineds.
Here is my collections about PHP.

What is PHP?

PHP stands for "PHP Hypertext Preprocessor."
PHP is a powerful server-side scripting language for creating
dynamic and interactive websites.


PHP scripts are executed on the server
PHP supports many databases (MySQL, Informix, Oracle, Sybase,
Solid, PostgreSQL, Generic ODBC, etc.)

PHP is an open source software (OSS)

PHP is the widely-used, free, and efficient alternative to
competitors such as Microsoft's ASP.

PHP is perfectly suited for Web development and can be embedded
directly into the HTML code.


Before we study PHP, we should know HTML or other
script languages such as javascript and vbscript.


TO run PHP file , we must intstall wampserver.
Click wampserver to download for PHP.


We can write PHP programs on notepad or dreamwaver.We must save
PHP file the extension of ".php"

After saving .php, we can run .php files in browser by writing
like this http://localhost/filename.php

Here is to download PHP ebook for u.

Wish you all the best
Thanks