PHP ¹öÁ¯ Â÷ÀÌ·Î »ý±â´Â ¿À·ù ÇØ°áÁ» ºÎŹµå¸³´Ï´Ù.

   Á¶È¸ 8584   Ãßõ 0    

PHP 5.12¿¡¼­ 5.2.9-2·Î MySql 4.1.22¿¡¼­ 5.0.67 ·Î ¾÷±×·¹À̵å Çߴµ¥ ±× Àü±îÁö´Â Àß µÇ´ø ±¸¹®ÀÌ
¿À·ù »ÕÀ¸¸é¼­ ¾È µË´Ï´Ù.

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>
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
Á¤Èñ¼· 2009-10
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

mysql ¹®Á¦¶ó±â º¸´Ù´Â ÆÄÀÏÀÌ ¾ø´Â°Å °°Àºµ¥¿ä... /result.htm ÆÄÀÏÀÌ ¹«½¼ ¿ªÇÒ ÇÏ´ÂÁø ¸ð¸£°Ú´Âµ¥ ÀÖ³ª ã¾Æº¸¼¼¿ä.
°­¿µ½Ä 2009-10
ÆÄÀÏÀº ´Ù ÀÖ±¸¿ä. ¹öÁ¯À» ´Ù¿î±×·¹À̵åÇÏ¸é ¾Æ¹« ÀÌ»ó¾øÀÌ Àß µÇ´Âµ¥ ¾÷±×·¹À̵常 ÇÏ¸é ¾È µÇ³×¿ä.
Windows ¼­¹ö¿¡¼­ APM ¼ÂÆÃÀ¸·Î »ç¿ëÁßÀÌ½Å°Í °°±º¿ä.

windows + apm ¿¡¼­ ¹öÀü¿¡ µû¶ó Á¾Á¾ ³ªÅ¸³ª´Â ¹®Á¦Àε¥,
web serviceÀÇ root directory°¡ Á¤È®È÷ ¾îµð¸¦ ÀǹÌÇÏ´ÂÁö È®ÀÎÇÏ´Â °ÍÀÌ Áß¿äÇÒ °Í °°½À´Ï´Ù.
Áï, ÇöÀç warningÀÇ ³»¿ëÀº result.htm ÆÄÀÏÀÌ ¼­¹ö°¡ »ý°¢ÇÏ´Â /À§Ä¡¿¡ ¾ø±â ¶§¹®ÀÔ´Ï´Ù.

È®ÀÎÈÄ ÇöÀç Àý´ë °æ·Î·Î µÇ¾î ÀÖ´Â include¹®À» ÀüºÎ »ó´ë°æ·Î(./~~~ ../~~~ ÇüÅÂ)·Î ¹Ù²ãÁֽðųª,
ȤÀº $_SERVER["DOCUMENT_ROOT"] °°Àº ¸íÈ®ÇÑ Àý´ëÀ§Ä¡¸¦ ÀÌ¿ëÇÏ¿© Ç¥ÇöÇØ Áֽô °ÍÀÌ ÁÁ°Ú½À´Ï´Ù.
°­¿µ½Ä 2009-10
Windows IIS6.0 + PHP ¾²°í¿ä
D:/web/mukgeak/bbs/daejun/index.php ÆÄÀÏÀº ¿©±â ÀÖ±¸¿ä.
D:/web/mukgeak/bbs/daejun/10/result.htm ÆÄÀÏÀº ¿©±âÀÖ°í..

¿¡¼­ »ó´ë°æ·Î³ª Àý´ëÀ§Ä¡¸¦ ¾î¶² ½ÄÀ¸·Î ½áÁà¾ß Çϳª¿ä?
     
/result.htm À» ./10/result.htm À¸·Î ¹Ù²ãÁÖ¼¼¿ä.
°­¿µ½Ä 2009-10
´äº¯ÁֽŠȸ¿ø´Ôµé °¨»çÇÕ´Ï´Ù. ÀÚ¹®ÀÚ´äÀÔ´Ï´Ù.

php ¿É¼Ç¿¡¼­(php.ini) register_global ¿É¼ÇÀÌ off·Î µÇÀ־ ±×·¨½À´Ï´Ù.
¾Æ¸¶ ¹öÁ¯ ¾÷ÇÏ´Â °úÁ¤¿¡¼­ off·Î ¼³Á¤µÈµí ½Í½À´Ï´Ù.
on ½ÃÄÑÁÖ½Ã¸é ¾Æ¹« ÀÌ»ó ¾øÀÌ Àß ÀÛµ¿ÇÕ´Ï´Ù.
Á¤Èñ¼· 2009-10
¾Æ.... ±×·¸´Ù¸é Á¦·Îº¸µå ¹öÀüÀÌ Á» ¿À·¡µÆ³ª º¸±º¿ä...
register_global = off °¡ µðÆúÆ®·Î ¹Ù²ï°Ô Á» µÆ½À´Ï´Ù.
º¸¾È»ó À§ÇÔÇÏ´Ù°í ±×·¯´õ±º¿ä.


QnA
Á¦¸ñPage 922/5686
2014-05   4976014   Á¤ÀºÁØ1
2015-12   1512143   ¹é¸Þ°¡
2004-01   8587   °í¼º³²
2011-05   8586   ¹¹¶óÄ«³ë
2010-09   8586   ´ÙÀξƺü
2004-02   8586   ÀÌÁ¾¹Î
2010-07   8585   ±èÁ¤Áß
2009-10   8585   °­¿µ½Ä
2004-07   8585   ¾È¿µÁØ
2010-09   8585   ¼­¿ïI±èµ¿¼ö
2014-02   8585   HEUo±è¿ë¹Î
2004-01   8584   ±è±â¹ü
2006-06   8584   ¾ÈâÁØ
2004-03   8584   ÀÌÇÐÇö
2016-07   8584   Çý¸²À̾ƺü
2004-06   8584   ÀÌ¿µ¼±
2015-04   8584   ¿ìÁÖÁ¦ÀϹ̳²
2010-12   8583   ¸ÞÆ®
2004-01   8583   ¼ÒÇöÁØ
2011-03   8583   ±èÁøÇö
2004-03   8583   ÇÑâȣ
2003-07   8583   ±è±¤¼ö