실시간 쪽지와 접속자 구현중 ㅜㅜ 정보
실시간 쪽지와 접속자 구현중 ㅜㅜ본문
실시간 쪽지와 접속자를 구현할려고 안되는 실력을 짜내려고 하지만 잘 안되는군요.
우선 다음과 같이 head.php에서 real_memo_current.php 파일을 iframe로 불러들이는 형식으로 할려고 시도했습니다.
| head.php |
-----------------------------------------------------------------------------------------------------------------------------------------
<iframe src="<?=$g4[path]?>/realmemo.php" frameborder="0" width="620" height="60" marginwidth=0 marginheight=0 scrolling=no></iframe>
-----------------------------------------------------------------------------------------------------------------------------------------
그리고 real_memo_current.php 파일은 다음과 같습니다.
| real_memo_current.php |
-----------------------------------------------------------------------------------------------------------------------------------------
<?
// 상대 경로
$g4_path = ".";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/extend/latest.lib.php"); // 일정관리용
$refresh_time="20";// 몇초마다 리플리쉬 할지 지정
echo "<script language=\"javascript\">setTimeout(\"location.reload()\",".($refresh_time*1000).");</script>";
?>
<table width=620 height=60 cellpadding=0 cellspacing=0 border=0>
<tr>
<td height=30><a href="javascript:win_memo();"><font color="#ff8871;"><b>족지 (<?=$memo_not_read?>) 접속자(<?=$row[total_cnt]?>)</b></font></a></td>
</tr>
</table>
</body>
-----------------------------------------------------------------------------------------------------------------------------------------
그런데 변수중에서 $memo_not_read 와 $row[total_cnt] 에서 값이 나타나지 않아요.
어떤 파일을 포함하던가 변수를 넘겨와야하는거 같은데. 어떻게 해야하죠?
나름대로 해더파일 등을 포함시켜보았지만 답이 없네요. ㅜㅜ
우선 다음과 같이 head.php에서 real_memo_current.php 파일을 iframe로 불러들이는 형식으로 할려고 시도했습니다.
| head.php |
-----------------------------------------------------------------------------------------------------------------------------------------
<iframe src="<?=$g4[path]?>/realmemo.php" frameborder="0" width="620" height="60" marginwidth=0 marginheight=0 scrolling=no></iframe>
-----------------------------------------------------------------------------------------------------------------------------------------
그리고 real_memo_current.php 파일은 다음과 같습니다.
| real_memo_current.php |
-----------------------------------------------------------------------------------------------------------------------------------------
<?
// 상대 경로
$g4_path = ".";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/extend/latest.lib.php"); // 일정관리용
$refresh_time="20";// 몇초마다 리플리쉬 할지 지정
echo "<script language=\"javascript\">setTimeout(\"location.reload()\",".($refresh_time*1000).");</script>";
?>
<table width=620 height=60 cellpadding=0 cellspacing=0 border=0>
<tr>
<td height=30><a href="javascript:win_memo();"><font color="#ff8871;"><b>족지 (<?=$memo_not_read?>) 접속자(<?=$row[total_cnt]?>)</b></font></a></td>
</tr>
</table>
</body>
-----------------------------------------------------------------------------------------------------------------------------------------
그런데 변수중에서 $memo_not_read 와 $row[total_cnt] 에서 값이 나타나지 않아요.
어떤 파일을 포함하던가 변수를 넘겨와야하는거 같은데. 어떻게 해야하죠?
나름대로 해더파일 등을 포함시켜보았지만 답이 없네요. ㅜㅜ
댓글 전체