用include 引用近来c.php
--------------------
<?php
  include 'a.php';
  include 'b.php';
?>
--------------------至于这个include具体用法,就看手册吧

解决方案 »

  1.   

    include();
    include_once();
    require();
    require_once();
      

  2.   

    include(); 
    include_once(); 
    require(); 
    require_once(); 
      

  3.   


    $file_a = file_get_contents("a.php");
    $file_b = file_get_contents("b.php");$file_c = $file_a.$file_b;
    $file_c = str_replace("<?php","",$file_c);
    $file_c = str_replace("?>","",$file_c);
    $file_c = "<?php".$file_c."?>";file_put_contents("c.php",$file_c)or die("文件失败");
    die("合并成功");
    但是这么做没有什么意义
      

  4.   


    十分感谢,你的理解能力真强! 正是我想要的!已经搞定了!因为我要客户在一个表单里输入一个证书号, 然后这个证书号传到另外一个文件去验证是否有效,但又不想要数据库存取(程序用的是asp+Access数据库,只有这个表单用的是php,而且还要改数据库有点麻烦)。想来想去,也只有先把证书号提交后,写入a.php, 将验证的代码写入b.php,然后合在c.php里了。