in reply to Re: An unfortunate incounter with PHP (loading php output into a perl variable)
in thread An unfortunate incounter with PHP (loading php output into a perl variable)

Same deal. It executes fine at the command line and craps out through apache.

Interesting side note: I tried writing a tempfile with the parsed php data in it and it still didn't work. So I looked at the temp file and it was a mirror of my perl script with "Content-type..." at the top of it.
  • Comment on Re: Re: An unfortunate incounter with PHP (loading php output into a perl variable)

Replies are listed 'Best First'.
Re: Re: Re: An unfortunate incounter with PHP (loading php output into a perl variable)
by gmpassos (Priest) on May 01, 2003 at 07:45 UTC
    What?! Strange!

    Well, try php -q script.php >out.htm

    Ugly, but should work!

    If doen't work you can try to get the PHP output from http://foo/script.php, using any LWP or making a simple IO::Socket::INET. But this is ugly too!

    Graciliano M. P.
    "The creativity is the expression of the liberty".