내가 메일 forbodden 오류 메시지를 보낼 때하는 을이 403 Forbiddenh는 고객의 서버에서 내 응용 프로그램에서
<?php
$uri = $_SERVER['REQUEST_URI'];
$pieces = explode("/", $uri);
$name = $pieces[3];
$phone = $pieces[4];
$nam11 = urldecode($name);
/*$to = "[email protected]";*/
$to = "[email protected]";
$subject = "New Request Come !";
$message = '<div style="background-color: #EEEEEE;border-bottom: 1px solid #DCDCDC;padding: 10px 0 20px;width: 400px;">
<div style="width:400px;">
<div style="width:400px;background-color:#eeeeee;padding: 10px 0 20px;border-bottom:1px solid #dcdcdc;">
<div style="width:300px; text-align:center;color:#666666;margin-left:20px;font-size:12px;font-weight:bold;">
Now you got a new request from :
</div>
</div> <!--end of div_form_main-->
<div style="width:400px;background-color:#eeeeee;padding: 10px 0 20px;border-bottom:1px solid #dcdcdc;">
<div style="float:left;width:150px;color:#666666;margin-left:20px;font-size:12px;font-weight:bold;"> Name:</div>
<div style="float:left;width:auto;color:#000000;font-size:12px;font-weight:bold;">'.$nam11.'</div>
</div> <!--end of div_form_main-->
<!--end of div_form_main-->
<div style="width:400px;background-color:#eeeeee;padding: 10px 0 20px;border-bottom:1px solid #dcdcdc;">
<div style="float:left;width:150px;color:#666666;margin-left:20px;font-size:12px;font-weight:bold;"> Phone Number:</div>
<div style="float:left;width:auto;color:#000000;font-size:12px;font-weight:bold;">'.$phone.'</div></div> <!--end of div_form_main-->
</div> <!--end of div_password_main-->';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .="Content-Transfer-Encoding: 8bit";
if(!mail($to, $subject, $message, $headers))
{
echo 1;
}
else
{
echo 0;
}
//die();
?>
내가 보내는 process.php 페이지입니다이 내 아약스 코드
$.ajax({
type: "POST",
url: "http://www.ryuneo-clients.co.uk/houndzabout/process.php/"+x+"/"+y,
success: function(msg){
if(msg == 0)
{
alert("Your Request Is Send!");
}else{
alert("Your Request Is Failed!");
}
$("#txtname").val("Your Name");
$("#txtphone").val("Your Phone Number");
}
});
되어 표시됩니다 mail
"NetworkError: 403 Forbidden - http://www.ryuneo-clients.co.uk/houndzabout/process.php/fvgh/111-111-11111111"
은 firebug에 표시됩니다. 나는 새로운 windo 당신이 재 작성 규칙을 지정하는 htaccess로 파일을 가지고하지 않는 한이 메시지 승
Forbidden
You don't have permission to access /houndzabout/process.php/fvgh/111-111-11111111 on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
:하지만이 경우
, 자바 스크립트에 URL 라인처럼 보일 것이다 "http://www.ryuneo-clients.co.uk/houndzabout/ process.php? "+ x +"& "+ y 결과는 위와 같습니다. – Kichu
동일한 오류 유형 (forbidden/403)이 표시 될 수 있지만 오류 메시지는 분명히 다릅니다. 가능한 경우 새 오류 메시지로 게시물을 업데이트하십시오. – jedwards
금지됨 이 서버에서 /houndzabout/process.php에 액세스 할 수있는 권한이 없습니다. 또한 ErrorDocument를 사용하여 요청을 처리하는 동안 404 찾을 수 없음 오류가 발생했습니다. Tj = his가 오류입니다. – Kichu