short_open_tag in php.ini

ကၽြန္ေတာ္ Freelance Prj တစ္ခုလုပ္ရင္း ၾကံဳေတြ ့ေနရတာေလးထဲက တစ္ခုေသာ အေၾကာင္းအရာ တစ္ခုပါ။

ဒါကေတာ့ ကၽြန္ေတာ္ေရးထားတဲ့ php file ကို ကၽြန္ေတာ့္ သူငယ္ခ်င္းကို ေပးလိုက္တယ္။ သူ ့စက္လည္း ေရာက္ေရာ

php code ေတြ ေနရာမွာ ဆက္မ RUN ပဲ ရပ္ေနတာကို သတိျပဳမိတယ္။ ကၽြန္ေတာ့္ စက္မွာလည္း OK တယ္။ ျပီးေတာ့

ကၽြန္ေတာ့္ Hosting ေပၚမွာလည္း OK ျပီး သူ ့ရဲ  ့စက္မွာက်ေတာ့မွ ျပႆနာေပးေတာ့ နည္းနည္းေတာ့ ထူးဆန္းတာေပါ့။

သူ ့မွာလည္း တစ္ျခား သူလုပ္ထားတဲ့ php prj ေတြက အလုပ္လုပ္တယ္လို ့ေျပာတယ္။ ကၽြန္ေတာ္ေပးတဲ့ php script က်မွ

ျပႆနာတက္ေနတယ္ဆိုေတာ့ စဥ္းစားစရာ ျဖစ္လာတာေပါ့။ ဒါနဲ ့ပဲ သူ ့ဆီကေန php.ini file ကို ေတာင္းလိုက္ပါတယ္။

php.ini file ကို ဖြင့္ျပီး configuration setting ေတြကို လိုက္ဖတ္ၾကည့္လိုက္ေတာ့ short_open_tag ဆိုတာေလးကို သတိျပဳမိ

လိုက္တယ္။ သူ ့ရဲ  ့Explanation ကို ဖတ္ၾကည့္လိုက္ေတာ့ ဒီလိုေရးထားတယ္။

 

Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.

 

Default ကေတာ့ short_open_tag =Off; ျဖစ္ေနပါတယ္။ အဲ့ဒါကို short_open_tag =On; ဆိုျပီး ေျပာင္းလိုက္ျပီး Apache

ကို Restart ခ်ျပီး ျပန္ RUN ေတာ့ OK သြားပါတယ္။

တစ္ခု သတိထားရမွာကေတာ့ php.ini ထဲမွာ ျပင္ျပီးရင္ Apache ကို Restart ခ်ရပါမယ္။ အဲ့လိုမဟုတ္ရင္ ျပင္လိုက္တာ

effect မျဖစ္ပါဘူး ခင္ဗ်ာ။ ။

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

Login Form

Categories Table View

JoomlaWatch Stats 1.2.9 by Matej Koval

Facebook Share

Share on facebook

mod_joomtouch

Version Iphone

Version Iphone by JoomTouch