[PHP-users 33824] php 出力結果を外部関数(shell_exec)以外で入手する方法についてご相談
ほりおひろ
horixxstar @ gmail.com
2008年 7月 14日 (月) 17:17:20 JST
$B$$$D$b?H>!<j$K$b!"<ALd$P$+$j$7$+$;$:?=$7Lu$4$6$$$^$;$s!#(B
$BKYHx9 @ J8$H?=$7$^$9!#(B
$B<RFb$GC/$KJ9$$$F$bJ,$+$i$J$$LdBj$,H/@8$7$?$?$a!"(B
$B$4AjCL$5$;$F$/$@$5$$!#(B
--------------------------------------------------------------------------
php $B=PNO7k2L$r30It4X?t(B(shell_exec)$B0J30$GF~<j$9$k(B
$BJ}K!$K$D$$$F$4AjCL(B
--------------------------------------------------------------------------
---------------------------$BIaCJF0:n(B----------------------------------
$B$$$D$b$O!"(B
$B-!#P#H#P%U%!%$%k!V(Bmail_send.php$B!W$r(BCRON$B$GF0:n$5$;$^$9!#(B
$B-"!V(Bmail_send.php$B!W$NJ8Cf!V(Bbtn.php$B!W$G2hA|=PNO$5$;$^$9!#(B
$B-#2hA|$r%a!<%k$KE:IU$7AwIU!#(B
($B!v(Bbtp.php$B$O!"2hA|$rEG$-=P$9%U%!%$%k$G$9(B)
$B!{#C#R#O#N"*#P#H#P%U%!%$%k<B9T!J2<5-(Bmail_send.php$B$N0lItH4?h(B)
$cmd = "php -q ./btn.php"; .........$B-"(B
$output = shell_exec($cmd); .........$B-"(B
$mime->addHTMLimage($output, "image/gif", "top.gif", FALSE);
.........$B-#(B
$B!{=PNO7k2L(B $output $B$,2hA|%U%!%$%k$K$J$j$^$9!#(B
-----------------------------------------------------------------------------
-----------------------------$BLdBjF0:n(B----------------------------------
$B:#2s!"$3$N#P#H#P%U%!%$%k$r#W#E#B%"%/%;%9$+$i<B9T$5$;$h$&$H$7$?:]!"(B
$B!{#W#E#B%"%/%;%9(B(mail_send.php)$B"*#P#H#P%U%!%$%k<B9T(B
$cmd = "php -q ./btn.php";
$output = shell_exec($cmd);
$mime->addHTMLimage($output, "image/gif", "top.gif", FALSE);
$B!{=PNO7k2L(B $output
$B!V(BX-Powered-By: PHP/4.4.8 Content-type: text/html Status: 404
X-Powered-By: PHP/4.4.8 Content-type: text/html No input file
specified.$B!W(B
$B$H%(%i!<I=<($5$l$^$9!#(B
-----------------------------------------------------------------------------
$B!V(BNo input file specified$B!W$r8!:w$7$?$H$3$m!"(BPHP CGI$B%b!<%I$GF0:n$5$;$k(B
$B;v$,$&$^$/$$$C$F$J$$$H=P$F$-$^$7$?!#(B
$B#P#H#P%U%!%$%k$r#C#G#I%b!<%I$H$7$FF0$+$9MM!";n9T:x8m$7$?$N$G$9$,!"(B
$B$J$+$J$+$&$^$/$$$+$J$$>u67$G$9!#(B
$B$=$3$G!"$b$C$HNI$$J}K!$J$I$4$6$$$^$;$s$G$7$g$&$+!#(B
---------------------------------------------------------------------------------
$B$=$b$=$b!"#P#H#P%U%!%$%kFbIt$G(BPHP$B%U%!%$%k$r(Bshell_exec$B$GF0:n(B
$B$5$;$k$J$I!"JQ$o$C$?A`:n$J$N$G$O$J$$$G$7$g$&$+!#(B
$B$b$C$HNI$$J}K!$r3'MM$4B8CN$G$O$J$$$G$7$g$&$+!)(B
$B;d$,<B;\$7$F$$$k:n6H$O!":,K\E*$K$*$+$7$JA`:n$+$b$7$l$J$$(B
$B$J$H;W$$$4AjCL$5$;$FD:$/<!Bh$G$4$6$$$^$9!#(B
---------------------------------------------------------------------------------
$BBP>]$N#P#H#P%U%!%$%k!V(Bbtn.php$B!W$O!"(BWEB$B%"%/%;%9$G2hA|$O!"(B
$B4JC1$KI=<($G$-$k$N$G$9!#(B
-----------------------------------------------------------------------------------------
PHP$B=PNO7k2L$r!"%U%!%$%k$H$7$F<h$j9~$`!"$b$C$H%7%s%W%k$JJ}K!$O!"(B
$B$J$$$b$N$G$7$g$&$+!#(B
-----------------------------------------------------------------------------------------
$B0J>e!"$*4j$$$P$+$j$G?=$7Lu$4$6$$$^$;$s!#(B
$B<:NiCW$7$^$9!#(B
PHP-users メーリングリストの案内