Right so I've look around on the net but I couldn't find anything that tells me how to basically open and use a .php file in a .html file. For this assignment it is compulsory that I use a .html but I want to read a .csv file and append the data within it into a table but I only know how to do that in php. Is there a way to do this without touching the htaccess?
1条回答 默认 最新
- doupoji3856 2016-06-06 01:43关注
Can you please try with htaccess file
RewriteEngine on RewriteBase / RewriteCond %{THE_REQUEST} (.*)\.php RewriteRule ^(.*)\.php $1.html [R=301,L] RewriteCond %{THE_REQUEST} (.*)\.html RewriteRule ^(.*)\.html $1.php [L]
解决 无用评论 打赏 举报