I know that passthru only outputs what was sent to stdout and nothing else.
So, if XalanTransform is sending output to something other than stdout then
that might be it.

That is just my experience with passthru.

Brian Moon
----------------------------------------------------------------------
dealnews.com, Inc.
Makers of dealnews, dealmac
http://dealnews.com/ | http://dealmac.com/


----- Original Message -----
From: "Michael Dickson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 14, 2001 7:39 PM
Subject: [PHP-DEV] weird passthru() behavior


> I have a php script that looks like this:
>
>     <?php
>         passthru("sabcmd foo.xml foo.xsl");
>     ?>
>
> It works fine.  But when I instead try:
>
>     <?php
>         passthru("XalanTransform foo.xml foo.xsl");
>     ?>
>
> I get no output (no errors either, just nothing---if I add some html code
> around the php script then this html code comes out, but still nothing
from
> the passthru().)
>
> Some relevant facts:
>
> 1.  When run from the command line, "sabcmd foo.xml foo.xsl" and
> "XalanTransform foo.xml foo.xsl" return exactly the same thing to the
> terminal.
>
> 2.  sabcmd and XalanTransform are both C programs, and they both reside in
> /usr/bin.
>
>
> Any hints about what is going on here would be greatly appreciated!
>
>
> P.S.  In case you're wondering, sabcmd and Xalantransform are XSLT
engines.
> They translate foo.xml according to the rules in foo.xsl and send the
result
> to the terminal.
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to