dongzhang6544 2016-06-06 00:57
浏览 78

你如何在.html文件中打开并使用.php文件。

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]  
    
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题