랜덤으로 정보를 가져오려고 사용했던 코드인데 ...서버 변경 후 안되네요 채택완료
더블피디
7년 전
조회 2,153
</p>
<p><?php
//$banner = array(1, 2);
//if (!defined('_INDEX_')) {
$banner = array();
while (count($banner) < 2) {
$index = mt_rand(1, 2);
if (!in_array($index, $banner)) {
$info[] = $index;
}
}
//}
?></p>
<p> <!-- info -->
<div style=" text-align:center; width:500px; margin-top:5px; margin-left:60px; margin-bottom:10px; z-index:999;" >
<iframe src="/info/top<?php=$info[0]?>.html" width="500" height ="90" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></iframe>
</div></p>
<p> <div style=" text-align:center; width:728px; margin-top:5px; margin-left:60px; margin-bottom:10px; z-index:999;" >
<iframe src="/info/top<?=$info[1]?>.html" width="500" height ="90" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></iframe>
</div></p>
<p> <!-- info --></p>
<p>
아래와 같이 나오는데...왜 그럴까여?
Not Found
The requested URL /info/top< was not found on this server.
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
답변을 작성하려면 로그인이 필요합니다.
로그인