แก้ไขให้ php ใช้ Short Tags ได้ by arthit
31
Mar0
Mar0
ถ้าเราไม่ได้เปิด short_open_tag ใน ไฟล์ php.ini เป็น On เราจะใช้ Short Tags ใน php ไม่ได้
short tag คือ เราสามารถประกาศ tag php แบบนี้ได้เลย <? ?> หรือ <?=$ตัวแปร ?>
จากรูปที่ 1 ดูตรงส่วนของ Loaded Configuration File คือ path php.ini ที่เราต้องเข้าไปแก้ไข
เปิดไฟล์ php.ini search คำว่า short_open_tag แล้วแก้เป็น On
Enjoy this article?
Consider subscribing to our RSS feed!
ไม่มีความเห็น
ยังไม่มีความเห็น