[Áú¹®]Php ¼Ò½ºÁ» º¸°í µµ¿ÍÁÖ¼¼¿ä..

   Á¶È¸ 5772   Ãßõ 0    

http://mukgeak.com/daejun/index.php?cart=13&sub=main

들어가면 아래와 같은 내용이..

Warning: include(/result.htm) [function.include]: failed to open stream: No such file or directory in D:\Web\mukgeak\daejun\index.php on line 42

Warning: include() [function.include]: Failed opening '/result.htm' for inclusion (include_path='.') in D:\Web\mukgeak\daejun\index.php on line 42

 

index.php

<html>

<head>
<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>대한민국 인터넷 서예.문인화 대전</title>
</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>

 

윈도우 2003에서는 잘되는데 윈도우 2008에서는 위와같은 에러가 나면서 안되네요..

php 구문은 하나도 모르는데 고수님들이 좀 도와주세요.

이것 때문에 늙은놈이 밤새네요..

감사합니다.

 


ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
±è¿¬Èñ 2012-06
$cart ¸¦ ¸ÕÀú Âï¾îº¸¼Å¾ß °Ú³×¿ä.

<?
if($sub == 'valuation'){

À̺κÐÀ»

<?
echo $sub.'<br>---------------<br>'.$cart; exit;
if($sub == 'valuation'){

ÀÌ·¸°Ô ¹Ù²ãº¸½Ã±¸¿ä.

$sub ¿Í $cart °ªÀ» È®ÀÎÇغ¸½Ã°í, °æ·Î¸¦ È®ÀÎÇغ¸¼¼¿ä.
ÇØ´ç °æ·Î¿¡ result.htm ÆÄÀÏÀÌ ¾ø¾î¼­ ³ª´Â ¿¡·¯ ÀÌ´Ï $cart ¿¡ ´ã±ä °æ·Î°¡ ¾î¶»°Ô µÇ´ÂÁö È®ÀÎÇØ¾ß ¼öÁ¤°¡´ÉÇÒ °Í °°½À´Ï´Ù.
PHP ¼³Á¤ ÆÄÀÏÀ» »ìÆì º¸¼Å¾ß ÇÒ °Í °°½À´Ï´Ù.
ÇöÀç ¿¡·¯ »óȲÀ» º¸¸é Á¦ÀÏ ¸¶Áö¸· else ±¸¹®ÀÌ ½ÇÇà µÇ´Â µí ÇÕ´Ï´Ù.

Áï $sub, $cart °ªÀ» Á¦´ë·Î °¡Á® ¿ÀÁö ¸øÇÏ´Â °Í °°½À´Ï´Ù.
PHP ¹öÀü º¯°æÀ̳ª ¼³Á¤ÆÄÀÏ º¯°æÀ¸·Î
POST, GET¿¡ µû¶ó ´ã±â´Â º¯¼ö°¡ ±¸ºÐµÇ´Â °É·Î º¸ÀÔ´Ï´Ù.

À§ º¯¼ö¸¦ $_GET['sub'], $_GET['cart'] ÀÌ·±½ÄÀ¸·Î º¯°æ Çϸé Á¤»ó ÀÛµ¿ÇÒ °ÍÀ¸·Î º¸ÀÌÁö¸¸
´Ù¸¥ ÆäÀÌÁöµµ ¼öÁ¤ÇØ¾ß Çϱ⠶§¹®¿¡ ¼³Á¤ÆÄÀÏÀ» º¯°æÇÏ¼Å¾ß ÇÕ´Ï´Ù.

Á¦°¡ PHP´Ù·éÁö ¿À·¡µÇ¾î ¼³Á¤ÆÄÀÏ º¯°æÀº ´Ù¸¥ºÐ¿¡°Ô Æнº
¶Ç´Â phpschool.com¿¡¼­ ã¾Æº¸¼¼¿ä
±èÀ±¼ú 2012-06
¾ÆÆÄÄ¡ ¾Æ´Ï´ø°¡¿ä? IIS¸é ¸ðµâ ¼³Á¤ÇÒ°Ô ¸¹Àºµ¥...
php´Â IIS¿¡¼­ ¾ÈµÇ´Â ÇÔ¼öµéÀÌ ¸¹¾Æ¿ä.
À©µµ¿ì ȯ°æ¿¡¼­ temp ±ÇÇÑ¿¡¼­ ÀÍ¸í ¼öÁ¤±ÇÇѱîÁö ÀÖ¾î¾ß ¿¡·¯ ¾ø´Ù´Â°Íµµ ¾îµð¼­ º»µíÇѵ¥...
2³âÀü¿¡ ³Êµµ iis¿¡¼­ php ¾²´Ù°¡ °á±¹ ÀÌ·± ³­°ü¿¡ ºÎµúÇô¼­  php´Â ¹«Á¶°Ç ¾ÆÆÄÄ¡·Î ¿î¿µÇÏ°í ÀÖ½À´Ï´Ù.


QnA
Á¦¸ñPage 3454/5678
2014-05   4941015   Á¤ÀºÁØ1
2015-12   1477866   ¹é¸Þ°¡
2022-10   2416   À̸ŸÁ·®2
2018-10   3876   Sikieiki
2014-02   3370   ¹«¾Æ
2016-07   7868   ÆÈÄÚ2
2018-10   4775   À¸¶ß°Å
2021-03   2374   ¼ÛÁøÇö
2018-10   4461   dragoune
2011-11   7336   ÃÖ¸ð¾¾
2022-11   1949   ¸Ó¶óÄ«´Âµ¥
2014-02   17420   Á¤ÀǼ®
06-22   1349   ³ëÀçÇö
2011-12   5768   ½ÂÈÆ
2018-10   3000   À¸¶óÂ÷Â÷Â÷
2011-12   5933   klein
2022-11   2432   ±×¸°
07-02   1003   »ßµ¹À̽½ÇÄÀÌ
2015-06   2955   ¿À¸®½ÃÅ°
2016-07   4761   ±ÇÅ¿µ
2018-11   3074   ±Ô´Ï
2016-08   4745   ȲÀ籤