¿À·ù »ÕÀ¸¸é¼ ¾È µË´Ï´Ù.
Warning: include(/result.htm) [function.include]: failed to open stream: No such file or directory in D:\Web\mukgeak\daejun\index.php on line 38
Warning: include() [function.include]: Failed opening '/result.htm' for inclusion (include_path='.') in D:\Web\mukgeak\daejun\index.php on line 38
¾Æ·¡´Â index.php ÀÔ´Ï´Ù.
<html>
<head>
</head>
<?
include "top.php";
?>
<table width="800">
<tr>
<td width="150">
<?
include "left.php";
?>
</td>
<td>
<?
if($sub == 'valuation'){
include $cart."/valuation.htm";
}elseif($sub == "judge"){
include $cart."/judge.htm";
}elseif($sub == "main"){
include $cart."/main.htm";
}elseif($sub == "chulpoom"){
include $cart."/chulpoom.htm";
}elseif($sub == "result"){
include $cart."/result.htm";
}elseif($sub == "results"){
include $cart."/results.htm";
}elseif($sub == "exhibition"){
include $cart."/exhibition.htm";
}elseif($sub == "new"){
include $cart."/main.htm";
}else{
include $cart."/result.htm";
}
?>
</td>
</tr>
</table>
</html>
top.php¶û left.phpµµ ¿Ã¸³´Ï´Ù.
(top.php)
<html>
<head>
<meta http-equiv="Content-Language" content="ko">
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Á¦10ȸ ´ëÇѹα¹ÀÎÅͳݼ¿¹.¹®ÀÎÈ ´ëÀü</title>
<STYLE TYPE="text/css">
A {color:#808080;text-decoration: none;}
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:hover {color: #FF6600; text-decoration: underline}
</style>
</head>
<body topmargin="0" leftmargin="0" background="back.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="790" id="AutoNumber1" height="71">
<tr>
<td width="133" height="50">
<p align="center"><b>Á¦ <? echo $cart ?> ȸ</b>
</td>
<td width="529" colspan="4" height="50">
<img border="0" src="title.gif" width="480" height="39">
</td>
<td align="center" width="128">
<a href="http://mukgeak.com/bbs/zboard.php?id=daejun_board" target="main"><img border="0" src="board.gif" width="60" height="18"></a>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="790" id="AutoNumber1" height="71">
<tr>
<form action="index.php" name="link" method="post">
<td width="150" align="center">
<input type="hidden" name="sub" value="new">
<select name="cart" onBlur="this.selectedIndex = 0" onChange="form.submit();">
<option value="0" STYLE="background-color:#888888;color:#FFFFFF">**¼±ÅÃÇϼ¼¿ä**</option>
<option value="1" STYLE="background-color:#C0C0C0;color:#000080"># Á¦1ȸ °ø¸ðÀü</option>
<option value="2" STYLE="background-color:#C0C0C0;color:#000080"># Á¦2ȸ °ø¸ðÀü</option>
<option value="3" STYLE="background-color:#C0C0C0;color:#000080"># Á¦3ȸ °ø¸ðÀü</option>
<option value="4" STYLE="background-color:#C0C0C0;color:#000080"># Á¦4ȸ °ø¸ðÀü</option>
<option value="5" STYLE="background-color:#C0C0C0;color:#000080"># Á¦5ȸ °ø¸ðÀü</option>
<option value="6" STYLE="background-color:#C0C0C0;color:#000080"># Á¦6ȸ °ø¸ðÀü</option>
<option value="7" STYLE="background-color:#C0C0C0;color:#000080"># Á¦7ȸ °ø¸ðÀü</option>
<option value="8" STYLE="background-color:#C0C0C0;color:#000080"># Á¦8ȸ °ø¸ðÀü</option>
<option value="9" STYLE="background-color:#C0C0C0;color:#000080"># Á¦9ȸ °ø¸ðÀü</option>
<option value="10" STYLE="background-color:#C0C0C0;color:#000080"># Á¦10ȸ °ø¸ðÀü</option>
</select>
</td>
</form>
<td width="100" align="center">
<b><font size="2"><a href="index.php?cart=<? echo $cart ?>&sub=valuation">½É»çÆò</a></font></b>
</td>
<td width="100" align="center">
<b><font size="2"><a href="index.php?cart=<? echo $cart ?>&sub=judge">½É»çÀ§¿ø</a></font></b>
</td>
<td width="100" align="center">
<b><font size="2"><a href="index.php?cart=<? echo $cart ?>&sub=chulpoom">ÃâÇ°ÇöȲ</a></font></b>
</td>
<td width="100" align="center">
<b><font size="2"><a href="index.php?cart=<? echo $cart ?>&sub=result">ÀÔ»óÀÚ¸í´Ü</a></font></b>
</td>
<td width="100" align="center">
<b><font size="2"><a href="index.php?cart=<? echo $cart ?>&sub=exhibition">Àü½Ãȸ</a></font></b>
</td>
</tr>
</table>
</body>
</html>
(left.php)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>´ëÇѹα¹ ÀÎÅÍ³Ý ¼¿¹.¹®ÀÎÈ ´ëÀü</title>
<base target="main">
</head>
<body background="back.gif" topmargin="0" leftmargin="0" bgproperties="fixed">
<p>¡¡</p>
</body>
</html>
Warning: include() [function.include]: Failed opening '/result.htm' for inclusion (include_path='.') in D:\Web\mukgeak\daejun\index.php on line 38
mysql ¹®Á¦¶ó±â º¸´Ù´Â ÆÄÀÏÀÌ ¾ø´Â°Å °°Àºµ¥¿ä... /result.htm ÆÄÀÏÀÌ ¹«½¼ ¿ªÇÒ ÇÏ´ÂÁø ¸ð¸£°Ú´Âµ¥ ÀÖ³ª ã¾Æº¸¼¼¿ä.
windows + apm ¿¡¼ ¹öÀü¿¡ µû¶ó Á¾Á¾ ³ªÅ¸³ª´Â ¹®Á¦Àε¥,
web serviceÀÇ root directory°¡ Á¤È®È÷ ¾îµð¸¦ ÀǹÌÇÏ´ÂÁö È®ÀÎÇÏ´Â °ÍÀÌ Áß¿äÇÒ °Í °°½À´Ï´Ù.
Áï, ÇöÀç warningÀÇ ³»¿ëÀº result.htm ÆÄÀÏÀÌ ¼¹ö°¡ »ý°¢ÇÏ´Â /À§Ä¡¿¡ ¾ø±â ¶§¹®ÀÔ´Ï´Ù.
È®ÀÎÈÄ ÇöÀç Àý´ë °æ·Î·Î µÇ¾î ÀÖ´Â include¹®À» ÀüºÎ »ó´ë°æ·Î(./~~~ ../~~~ ÇüÅÂ)·Î ¹Ù²ãÁֽðųª,
ȤÀº $_SERVER["DOCUMENT_ROOT"] °°Àº ¸íÈ®ÇÑ Àý´ëÀ§Ä¡¸¦ ÀÌ¿ëÇÏ¿© Ç¥ÇöÇØ Áֽô °ÍÀÌ ÁÁ°Ú½À´Ï´Ù.
D:/web/mukgeak/bbs/daejun/index.php ÆÄÀÏÀº ¿©±â ÀÖ±¸¿ä.
D:/web/mukgeak/bbs/daejun/10/result.htm ÆÄÀÏÀº ¿©±âÀÖ°í..
¿¡¼ »ó´ë°æ·Î³ª Àý´ëÀ§Ä¡¸¦ ¾î¶² ½ÄÀ¸·Î ½áÁà¾ß Çϳª¿ä?
php ¿É¼Ç¿¡¼(php.ini) register_global ¿É¼ÇÀÌ off·Î µÇÀÖ¾î¼ ±×·¨½À´Ï´Ù.
¾Æ¸¶ ¹öÁ¯ ¾÷ÇÏ´Â °úÁ¤¿¡¼ off·Î ¼³Á¤µÈµí ½Í½À´Ï´Ù.
on ½ÃÄÑÁÖ½Ã¸é ¾Æ¹« ÀÌ»ó ¾øÀÌ Àß ÀÛµ¿ÇÕ´Ï´Ù.
register_global = off °¡ µðÆúÆ®·Î ¹Ù²ï°Ô Á» µÆ½À´Ï´Ù.
º¸¾È»ó À§ÇÔÇÏ´Ù°í ±×·¯´õ±º¿ä.