专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > PHP

php文件中引入html文件的方法

发布时间: 文章来源:www.iduyao.cn 采编人员:毒药  
1、require()方法
reqire("iduyao.html");

2、file_get_contents()函数
$string = file_get_contents("iduyao.html");
    echo $string;

3、fopen()函数
$file = fopen('iduyao.html','r');

    if($file){
        while(!feof($file)){
            $line = fgetc($file);
            echo $line;
        }
    }
    fclose($file);

4、include函数
<?php include("iduyao.html"); ?>
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
   776阅读
目前尚无回复
登录 后发表评论

热门分类: