html 로 실행
본문
지금 현재 index.php로 실행을 하고 있다면 이걸
index.html 로 실행 하려 하는데 어떻게 하나요?
답변 6
아파치 설정을 php파일 보다 html을 먼저 읽게 하셨다면 index.html을 넣으시면 먼저 읽고요
아파치 설정을 html파일 보다 php를 먼저 읽게 하셨다면 설정을 바꾸시던가 확장자를 바꾸시면 될 듯합니다.
해당 파일을 만들어서 넣어주시면 됩니다.
기본적으로 index.php보다 index.html을 먼저 불러옵니다.
정 불안하시면 index.php를 지우고 index.html만 남겨두시면 됩니다.
index.php 를 지우시면, index.html로 실행이 되실거에요.
그럼 php에 있는 내용 그대로 html에 복사해서 넣으면 되는건가요?
``<?php
define('_INDEX_', true);
include_once('./_common.php');
// 首页初始画面路径设置 : 请勿随意更改此段代码
if ($config['cf_include_index'] && is_file(G5_PATH.'/'.$config['cf_include_index'])) {
include_once(G5_PATH.'/'.$config['cf_include_index']);
return; // 不执行以下代码
}
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/index.php');
return;
}
include_once('./_head.php');
?>
<h2 class="sound_only">最新文章</h2>
<div id="container" style="margin-top: 15px">
<a href="http://www.weibo.com"><img src="/img/weibo_sns01.jpg"></a>
<a href="bbs/content.php?co_id=qr_code" target="_blank"><img src="/img/wechat_sns02.jpg" ></a>
<a href="http://wpa.qq.com/msgrd?v=3&uin=3236478786&site=qq&menu=yes" target="_blank" ><img src="/img/QQ_sns03.jpg"></a>
<a href="/bbs/board.php?bo_table=qna"><img src="/img/Q&A_sns04.jpg"></a>
<br><br><br>
<table width="100%">
<div style="margin-bottom: 15px;">
<a href="/bbs/board.php?bo_table=iris"><img src="/img/studio/title_02.jpg"></a>
</div>
<tr>
<td><video src="/img/video/Studio-PEONY.mp4" type="video/mp4" controls="controls" width="500" height="380">
</video></td>
<td height="100%"><img src="/img/studio/mov_copy.jpg" width="100%"></td>
</tr>
</table>
<table width="100%" height="100%" cellpadding="5" cellspacing="0">
<tr>
<td><img src="/img/studio/iris.gif"></td>
<td><img src="/img/studio/calla.gif"></td>
<td><img src="/img/studio/lavender.gif"></td>
</tr>
<tr>
<td><img src="/img/studio/lily.gif"></td>
<td><img src="/img/studio/peony.gif"></td>
<td><img src="/img/studio/poppy.gif"></td>
</tr>
<tr>
<td><img src="/img/studio/rose.gif"></td>
<td><img src="/img/studio/sunflower.gif"></td>
<td><img src="/img/studio/tulip.gif"></td>
</tr>
</table>
</div>
<!--<div style="max-width:100%; height:298px; float: left;margin-top: 10px;background:url('../img/service_bg.jpg') center right no-repeat;margin-top: 50px;margin-bottom: 35px"><img src="/img/service.png" ></div> -->
<div style="position:relative;left:0; float: left;margin-top: 28px;margin-bottom: 10px;">
<img src="/img/service.png" />
</div>
<div style="width: 100%;margin-top: 25px;">
<table width="100%" cellpadding="5" >
<tr>
<td width="340px"><img src="/img/contact.jpg" width="85%"></td>
<td width="250px"><img src="/img/news.jpg" width="90%"></td>
<td width="250px"><img src="/img/qna.jpg" width="90%"></td>
</tr>
<tr align="left">
<td width="270px"><img src="/img/contact_sub.jpg" width="85%" height="97%"></td>
<td width="250px"><?php echo latest("basic",'news',20,18) ?></td>
<td width="250px"><?php echo latest("basic",'qna',20,18) ?></td>
</tr>
</table>
</div>
<?php
include_once('./_tail.php');
?>
네 그대로 사용하셔도 됩니다,
답변주신분들 모두 감사합니다.. 제일 먼저 답변주신분꺼 채택 한다는것이..제일 나중에 답변주신분게 채택됬네요...;;ㅠㅠ 죄송합니다 ..