เขียนยังไงให้ code php แสดงในหน้าบทความ Blogger
ที่เขียนเรื่องนี้เพราะเหตุมาจากจะเรื่อง หา Path ของ Website
เพราะเขียนโค้ดลงไป โค้ดที่เขียนก็หายไปบ้าง แสดงผลไม่ครบบ้าง
เลยต้องไปค้นหาวิธีมา ทำให้ทราบว่าต้องใช้แท๊ก

ครอบที่โค้ดที่จะเขียนซะก่อน
ถัดมาเป็นเครื่องหมาย

ก็ไม่สามารถแสดงผลใน Blogger ได้

สรุปว่า code ที่ต้องใช้เพื่อให้แสดงผลเป็น code ในบทความ หา Path ของ Website

ได้ผลดังข้างล่าง
<?php
//Gets the documet root
$root=getenv("DOCUMETN_ROOT");
Echo $root;
?>
0 comments:
Post a Comment