include("file") 或者 include_once("file")当然是写在<?php ?.标记中间的

解决方案 »

  1.   

    <?php require_once('top.php'); ?>
    <?php include("top.php"); ?>
      

  2.   

    <?php 
       include "top.php";
    ?>
    这样没问题喔.
      

  3.   

    我只要和
    "<!--#include file="webtop.asp"-->"
    这句话显示想同的东西<?php include "top.php"; ?>
    显示不去那些东西
      

  4.   

    <?php
    include "filename";
    ?>
    PHP嵌文件最简单的方法.
    你不会是想在PHP中嵌ASP的网页吧?
      

  5.   

    <?php require_once('top.php'); ?>
    <?php include("top.php"); ?>
    检查一下文件的路径是否正确。
      

  6.   

    那文件也是php的啊但就是显示不出