可以試試看在php.ini使用auto_append_file這個指令
用smarty......
電腦在從名稱轉換成 IP 時,會優先從 hosts 這個檔案,去查對照表。 127.0.0.1 是一個特別的 IP 所指向的電腦,是 local host 12...