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

   Á¶È¸ 8648   Ãßõ 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 4089/5696
2014-05   5029658   Á¤ÀºÁØ1
2015-12   1566222   ¹é¸Þ°¡
2018-07   6673   ÇູÇϼ¼
2016-12   6674   Psychophysi¡¦
2008-02   6674   ÀåÁ¾¸í
2005-02   6674   À̼ºÈ£
2015-01   6674   ¼­¿ï»ç¶÷
2005-01   6674   ÀÌÇõ
2021-05   6674   asas12111
2005-03   6674   À±¿î¼±
2017-09   6674   »ßµ¹À̽½ÇÄÀÌ
2007-04   6674   ÀåÇö¸ð
2014-04   6675   °¡ºü·Î±¸³ª
2004-11   6675   ·ù°æ¿ì
2016-12   6675   À̼±È£
2004-12   6675   ¹Ú±âÇö
2004-08   6675   À±È£¿ë
2011-04   6675   À¯Á¾Ã¶
2005-03   6675   Á¤ÀçÈÆ
2013-09   6675   µÎ¸®¾È
2011-03   6676   ¿¹°ü½Å±Ô½Ä
2005-01   6676   ±èÁ¾¿±