1.PHP 불러오는방법
<? include "menu.html"; ?>
2. ASP 불러오는방법
<!-- #include virtual="menu.html" -->
3. JS 불러오는방법
str = ''
str += '<table width=300 border=1 cellpadding=5 cellspacing=1>'
str += ' <tr>'
str += ' <td align=center bgcolor=#e1e1e1>LOGO</td>'
str += ' <td align=center>menu01</td>'
str += ' <td align=center>menu02</td>'
str += ' <td align=center>menu03</td>'
str += ' <td align=center>menu04</td>'
str += ' </tr>'
str += ' </table>'
str += '</table>'
document.write( str );
html 소스 매 줄마다 앞에는 str += ' 를 뒤에는 ' 를 붙여준다.
<script language="JavaScript" src="menu.js"></script>
===================================================================================
<?php
{
include 'vars.php';
}
?>
* 절대 경로로 쓰는 방법
include "$DOCUMENT_ROOT/test.html";
이런식으로 해주면 됩니다.
include /home/hosting_users/des00/www/test/test.html
<?php require_once('php.php'); ?>
-----------------------------드림위버에서-----------------------------------
jsp파일: <%@ include file="/employ/inc_center.jsp"%>
HTML파일 : <!--#include file="test.htm" -->
PHP파일 : <?php require_once('php.php'); ?> ,
<?php{include 'vars.php';}?>
※php 절대 경로로 쓰는 방법
include "$DOCUMENT_ROOT/test.html";