ไฟล์ html จะ include php ยังไงครับ

เริ่มโดย golf98765, 10 มิถุนายน 2007, 16:41:08

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

golf98765


Newbies

ถ้าโดย html จริงๆแล้ว ทำไม่ได้ครับ นอกจากใช้พวก mod rewrite หรือเทคนิคอื่นๆ ช่วย



Dr.K

เขียนโดย php
แล้วใช้ mod rewrite
เปลี่ยนนามสกุลเป็น html
[direct=https://www.thaihealth.net/blog/seo_doctor/]seo blog[/direct]|[direct=https://netplushost.com]netplushost[/direct]
[direct=https://pattayawebmarketing.com/pattaya-seo]pattaya seo[/direct]
[direct=https://dochost.net]seo hosting[/direct]

golf98765

 :-*

ขอบคุณมากครับ

ทำได้ละครับ

วิธีก็คือ ปรับไฟล์ .htaccess  เพิ่มคำว่า .php เข้าไปเช่น

AddType application/x-httpd-php .html .php .htm


ก็ได้แว้ว ขอบคุณครับผม  :'(

youcanberich

เพิ่มเติมให้ครับ ใครใช้ hostmonster มันจะใช้ไม่ได้(ไม่รู้เป้นที่ผมคนเดียวรึป่าว ???)ให้เข้าไปแก้ไขใน cpanel ตามวิธีการนี้
http://rssfeedreader.com/php.html#HTML
ทำตามรูปภาพเลย

แล้วก็ให้แก้ไฟล์ .htaccess เพิ่ม

DirectoryIndex index.html
Addhandler application/x-httpd-php .html .php

เข้าไปเรียบร้อย  :)
[direct=http://www.iheartpassiveincome.com/]อยากรู้ว่าผมทำเงินวันละ $1000 ได้ยังไง คลิ๊ก![/direct]
[direct=http://www.iheartpassiveincome.com/]ผมจะสอนให้คุณหารายได้แบบยั่งยืนบนโลกออนไลน์ รับประกันคุณทำได้แน่นอน[/direct]
[direct=http://www.iheartpassiveincome.com/]เหนื่อยกับการปั่นเว็บใช่มั้ย อยากทำเงินวันละ $100 และไม่ต้องลุ้นโดนแบนรายวัน ผมมีทางออกให้ คลิ๊กครับ![/direct]