[PHP-users 14304] mailでphpを動かす

php-users @ php.gr.jp php-users@php.gr.jp
2003年 3月 25日 (火) 09:12:18 JST


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C2F2FA.12460640
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit

このての過去ログがあったので見ましたが、ちょっと違ったのでメールします。

環境は

redhat8.0 qmail1.03 php4.2.3 apache1.3.27です。

やりたいことは、メールを受信してあるPHPファイルを動かすといった

今までにあるようなものなのですが、そのPHPファイルが動いてくれないため

エラー内容がわかりません。

メールは 自分のPC内だけmailコマンドで使用できます。メーラーは使用できま
せんが、、、

$/alias/.qmail-test の処理がやりたいので必要ないでしょう。



.qmail-testの中には

&test | /usr/local/bin/php /usr/local/apache/htdocs/count.php

としてます。

Test: | /usr/local/bin/php /usr/local/apache/htdocs/count.php や

| /usr/local/bin/php /usr/local/apache/htdocs/count.php や

| /usr/local/apache/count.php などやりました。

このcount.phpはコマンドラインから

/usr/local/bin/php /usr/local/apache/htdocs/count.php としたら何も

問題なく動いています。

ここでphpファイルが動かないのはphpファイルが悪いわけじゃないと思っていま
す。

もちろん #!/usr/local/bin/php の有無は .qmail-testによって変更していま
す。

メールがかなりたまったために、$/spool/test ファイルの中のログを

viで開いて削除はやりました。ほかに削除方法が思いつかなかったので、、、

ですが、削除する前に一度だけ動いたんです。

強制削除のせいでしょうか?

何か思いつかれた方、お返事ください。

よろしくお願いします


------=_NextPart_000_0001_01C2F2FA.12460640
Content-Type: text/html;
	charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-2022-jp">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"=1B$B#M#S=1B(J =1B$BL@D+=1B(J";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J";
	panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
	{font-family:Century;
	panose-1:2 4 6 4 5 5 5 2 3 4;}
@font-face
	{font-family:"\@=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J";
	panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
	{font-family:"\@=1B$B#M#S=1B(J =1B$BL@D+=1B(J";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0mm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:Century;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
 /* Page Definitions */
 @page Section1
	{size:595.3pt 841.9pt;
	margin:99.25pt 30.0mm 30.0mm 30.0mm;
	layout-grid:18.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DJA link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>

<div class=3DSection1 style=3D'layout-grid:18.0pt'>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$3$N$F$N2a5n%m%0$,$"$C$?$N$G8+$^$7$?$,!"$A$g$C$=
H0c$C$?$N$G%a!<%k$7$^$9!#=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B4D6-$O=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>redhat8.0 qmail1.03 php4.2.3 =
apache1.3.27</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$G$9!#=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$d$j$?$$$3$H$O!"%a!<%k$r<u?.$7$F$"$k=1B(J</span=
></font><font size=3D2 face=3DArial><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>PHP</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B%U%!%$%k$rF0$+$9$H$$$C$?=1B(J</span></font></p>=


<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B:#$^$G$K$"$k$h$&$J$b$N$J$N$G$9$,!"$=3D$N=1B(J</=
span></font><font size=3D2
face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>PHP</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B%U%!%$%k$,F0$$$F$/$l$J$$$?$a=1B(J</span></font>=
</p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B%(%i!<FbMF$,$o$+$j$^$;$s!#=1B(J</span></font></=
p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B%a!<%k$O=1B(J</span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'> </span></font><font =
size=3D2
face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B<+J,$N=1B(J</span></font><font
size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>PC</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$BFb$@$1=1B(J</span></font><font
size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>mail</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B%3=1B(J=1B$B%^%s%I$G;HMQ$G$-$^$9!#%a!<%i!<$O;HM=
Q$G$-$^$;$s$,!"!"!"=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>$/alias/.qmail-test</span></font><font =
size=3D2
face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B!!$N=3DhM}$,$d$j$?$$$N$GI,MW$J$$$G$7$g$&!#=1B(J=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>.qmail-test</span></font><font size=3D2 =
face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$NCf$K$O=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>&amp;test | /usr/local/bin/php =
/usr/local/apache/htdocs/count.php</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$H$7$F$^$9!#=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Test: | /usr/local/bin/php =
/usr/local/apache/htdocs/count.php
</span></font><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$d=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>| /usr/local/bin/php =
/usr/local/apache/htdocs/count.php</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B!!$d=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>| =
/usr/local/apache/count.php</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B!!$J$I$d$j$^$7$?!#=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$3$N=1B(J</span></font><font size=3D2 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>count.php</span></font><font=

size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$O%3%^%s%I%i%$%s$+$i=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>/usr/local/bin/php =
/usr/local/apache/htdocs/count.php
</span></font><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$H$7$?$i2?$b=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$BLdBj$J$/F0$$$F$$$^$9!#=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$3$3$G=1B(J</span></font><font size=3D2 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>php</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B%U%!%$%k$,F0$+$J$$$N$O=1B(J</span></font><font
size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>php</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B%U%!%$%k$,0-$$$o$1$8$c$J$$$H;W$C$F$$$^$9!#=1B(J=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$b$A$m$s!!=1B(J</span></font><font size=3D2 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>#!/usr/local/bin/php =
</span></font><font
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$NM-L5$O=1B(J</span></font><font
size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>
.qmail-test</span></font><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:
10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$K$h$C$FJQ99$7$F$$$^$9!#=1B(J</span></font></p>=


<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B%a!<%k$,$+$J$j$?$^$C$?$?$a$K!"=1B(J</span></fon=
t><font size=3D2 face=3DArial><span
lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Arial'>$/spool/test</span></font><f=
ont
size=3D2 face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span =
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B!!%U%!%$%k$NCf$N%m%0$r=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>vi</span></font><font size=3D2 =
face=3D"=1B$B#M#S=1B(J =1B$B%4%7%C%/=1B(J"><span
style=3D'font-size:10.0pt;font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$G3+$$$F:o=3D|$O$d$j$^$7$?!#$[$+$K:o=3D|J}K!$,;=
W$$$D$+$J$+$C$?$N$G!"!"!"=1B(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$G$9$,!":o=3D|$9$kA0$K0lEY$@$1F0$$$?$s$G$9!#=1B=
(J</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B6/@):o=3D|$N$;$$$G$7$g$&$+!)=1B(J</span></font>=
</p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B2?$+;W$$$D$+$l$?J}!"$*JV;v$/$@$5$$!#=1B(J</span=
></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"><span style=3D'font-size:10.0pt;
font-family:"=1B$B#M#S=1B(J =
=1B$B%4%7%C%/=1B(J"'>=1B$B$h$m$7$/$*4j$$$7$^$9=1B(J</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0001_01C2F2FA.12460640--



PHP-users メーリングリストの案内