묻고답하기

메일이 안 보내어져서 이렇게 도움을 요청합니다.
mail2.php가 아래처럼 이렇게 되어있고 그 밑에 mail2_end.php가 있습니다.


Parse error: parse error, unexpected T_STRING in /home/word/public_html/mail2_end.php on line 10


그런데 이렇게 에러가 뜹니다.

제가 급하거든요.

그럼 도움을 부탁드립니다.

^^

감사합니다.

행복하세요...


mail2.php 가

<html>
<head>
<script language='javascript'>
function sendmail()
{
        if(document.mail.to.value == "")
                alert("주소");
        else if(document.mail.from.value == "")
                alert("자신매일");
        else if(document.mail.subject.value == "")
                alert("제목");
         else if(document.mail.content.value == "")
                 alert("내용");
         else document.mail.submit();
}
</script>
<title> php world -mailer</title>
</head>
<body bgcolor=eeeeee>
<center><font size=6 face='comic sans ms'>form mail</font><br>
<form name=mail method=post action='mail2_end.php'>
<table width=550 cellspacing=1 bgcolor=black>
<tr>
    <td align=center bgcolor=999999 width=20%>
         <font size=2 color=000000 >받는자</td>
         <td bgcolor=eeeeee width=80%><input type=text name=to size=50></td>
         <tr>
<tr>
    <td align=center bgcolor=999999 ><font size=2 color=white>보내는 사람</font></td>
        <td bgcolor=eeeeee><input type=text name=from size=50></td>
</tr>
<tr>
   <td align=center bgcolor=999999><font size=2 color=white>제목</font></td>
   <td bgcolor=eeeeee><input type=text name=subject size=50></td>
   </tr>
<tr>
    <td align=center bgcolor=999999> <font size=2 color=white>내용</font>
        </td>
    <td bgcolor=eeeeee><textarea name=content rows=12 cols=52>
        </textarea></td>
        </tr>
<tr>
   <td align=center bgcolor=999999><font size=2 color=white>첨부파일 </font></td>
   <td bgcolor=eeeeee> <input type=file name=upfile></td>
   </tr>
</table>
<table width=500>
<tr>
   <td height=5 align=center><input type=button value='메일발송' onclick='sendmail()'>
      <input type=button value='+ '+ '취소' onclick='self.window.close();'></td>
   </tr>
   </table>
   </form>
   </body>
   </html>








mail2_end.php


// 첨부파일 체크...
if ($upfile && $upfile_size)
{
//파일함수를 이용하내용을 $file에저장
      $filename=basename($upfile_name);
          $result=fopen($upfile,"r");         <= 에러부분
          $file=fread($result,$upfile_size);
          fclose($result);
//타입
      $upfile_type = "application/octet-stream";
      $boundary = "--------" . uniqid("part");
          $headers . = "mime-version: 1.0rn";
          $headers . = "content-type: multipart/mixed;
               boundary="$boundary"";
//메세지
       $body .= "this is a multi-part message in mime format.rnrn";
           $body .= "--$boundaryrn";
           $body .= "content-type: text/html; charset=euc-krrn";
           $body .= "content-transfer-encoding: 8bitrnrn";
           $body .= "nl2br(stripslashes($content)) . "rnrn";
       $body .= "nl2br(stripslashes($phpworld) . "rnrn";
           $body .= "--$boundaryrn";
//파일
       $body .= "content-type: $upfile_type; name="$filename"rn";
           $body .= "content-transfer-encoding: base64rnrn";
       $body .= ereg_replace("(.{80})","\1rn",base64_encode($file));
}
else
{
// 첨부된 파일없을때...
           $body =stripslashes($content)."rnrn";
}

mail($to,$subject,$body,$headers);
echo "
<html>
<head>
<script language='javascript'>
function cc()
{
            settimeout('window.close()',3000);
}
</script>
</head>
<body onload='cc();'bgcolor=eeeeee>
<table width=100%>
<tr>
   <td height=280 valign=middle align=center><font size=2 color=blue>매일발송하였습니다.</font></td>
   </tr>
   </table>
   </body>
   </html>";
?>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
샤샤 나모로 홈페이지를 그대로 저장하려면 [2] 2007.08.10
김문희 내 컴퓨터에 apm을 설치하고 제로보드를 사용하는데요... [2] 2007.08.10
정문목 동영상처럼 나오는 GIF 파일은 어떻게 만드나요? [7] 2007.08.10
김복수 고수님 들 도와주세요-질문방에 도 잇지만 혹시 리플이 안달리지도 몰라여기도 올립니다 죄송합니다 [1] 2007.08.10
이원규 오류가 나는데. 어떻게 해야는지~.. [1] 2007.08.10
김경민 노프레임에 대한 질문사항입니다. [1] 2007.08.10
apm 에서 비밀번호가 ㅡ.ㅡ;;급합니다.ㅠ.ㅠ [1] 2007.08.10
이나 윈도 XP 에서 말이죠...도와주세여~~ [2] 2007.08.10
달파란[R] 메뉴에서 아이프레임으로 링크하는법좀.. [1] 2007.08.10
김광수 winapm을 깔려는데요... [1] 2007.08.10
천사를봤다 이 폰트가 모지요..그림있음.. [1] 2007.08.10
고냉이 콱! 계정에 있는 파일들을 압축하는 명령어가 뭐죠? [3] 2007.08.10
HHH 테이블에..롤오버 적용? [1] 2007.08.10
박진수 기존의 움직이는 GIF 축소는 어떻게 하면 됩니까? [5] 2007.08.10
한승진 우리 서버 컴퓨터가 너무 부하가 많아졌어요 [2] 2007.08.10
윤수리 제로카운터 설치시 다음으로 넘어가지가 않습니다. [1] 2007.08.10
한승진 자바스크립트에서 window.open 질문.. [3] 2007.08.10
김소영 카테고리 없애는 방법없나요? [2] 2007.08.10
안창환 하이퍼링크 style와 제로보드의 style.css [2] 2007.08.10
김민규 특정시간에 if 이하의 구문을 실행시키는 방법 좀...?? [3] 2007.08.10
조인혁 포탈싸이트 초기화면에 가운데 ''떡''하고 뜨는 플래쉬 광고 [1] 2007.08.10
guppy 동영상 파일의 라이센스를 제거하는 법을 알고 싶어요 [1] 2007.08.10
김영범 내부 아이피를 고시원 입니다... 외부에서 접근 하는 방법이 없습니까?  
강요찬 [PHP] 간단한 PHP 구문 오류. - Call to undefined function... [2] 2007.08.10
꾸러기^^ 플래시색상관련질문입니다..  
세상 ftp ㅇ_ㅇ; 접속이 좀;;; [2] 2007.08.10
한용해 목록상자 링크 하는방법점 갈켜 주세요 [6] 2007.08.10
어버 포토샵으로 이미지를 불러오면 어둡게 나옵니다. [2] 2007.08.10
신대원 폼메일이 안 되어서 도움을 요청합니다. [2] 2007.08.10
이영노 APM 설치한후.. php 테스트 하는데.. [3] 2007.08.10