2010-08-23 6 views
2

나는 CPanel에 파이프 스크립트를 만들고 스크립트 시작 부분에 hashbang : #!/usr/bin/php -q을 배치했습니다. 스크립트는 실행되고 전자 메일의 로그를 내 DB의 테이블에 저장합니다. 내 문제와 관련된 모든 개인 정보만을 제거한CPanel 이메일 PHP로 배관

This message was created automatically by mail delivery software. 

A message that you sent could not be delivered to one or more of its 
recipients. This is a permanent error. The following address(es) failed: 

pipe to |/home/xxxxx/xxxxx.php 
    generated by [email protected] 

The following text was generated during the delivery attempt: 

------ pipe to |/home/xxxxxx/xxxx.php 
     generated by [email protected] ------ 

PHP Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0 
<br /> 
<b>Deprecated</b>: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in <b>Unknown</b> on line <b>0</b><br /> 



하지만 ... 그것은 이메일 다시 이메일을 통해 이동하고 표시하지 않았다고 주장 보냅니다 ....


내 문제는 무엇입니까?

답변

3

CPanel에서 파이프를 어떻게 추가 했습니까? 이 가이드를 따르는 경우

: 그 가이드는 설명으로

|php -q /home/phpshare/public_html/handler.php 

은 또한의 cPanel에서 -q 플래그를 포함나요 : http://www.phpshare.org/articles/Piping-Incoming-Mail-with-PHP.html

그것은이 (가)의 cPanel에 다음을 추가 말한다?

1

최근에 서버 버전을 5.2.x (예 : 5.3)로 업그레이드해야한다고 생각합니다.

PHP 5.3은 magic_quotes_gpc을 지원하지 않습니다.

그래서 php.ini에서 해당 행을 주석 처리하거나 제거하십시오. cPanel 서버에서 php.ini의 경로는 /usr/local/lib/php.ini

;을 사용해야합니다.

; magic_quotes_gpc = on 
1

당신의 PHP 스크립트는 (당신이 당신의 스크립트에서 이메일을 처리 한 경우에도) 이메일이 거부됩니다 (이 경우 마법 따옴표 오류) 어떤 이유로 실패하는 경우. 스크립트 오류가 발생하면 메시지 배달이 실패한 것으로 가정합니다.

다른 사람이 말했듯이, 마법이 문제를 인용 해결 ...

관련 문제