>
> > BTW. Do you have build mod_perl with USE_DSO? If so make sure
> you do _not_
> > load Embperl at server startup time!
>
> Yes I do, but I was following along with the guide and loaded
> everything at
> startup.  The embperl faq didn't give any reasons (that I can find) as to
> why I shouldn't or too many examples on what would go wrong.
> Since I wasn't
> having problems (up until now) I just kept loading at startup.  Oh well, I
> guess now I know what at least one practical ramification is.
>

When mod_perl is compiled with USE_DSO and you load Embperl on server
startup, some parts of Embperl will not work correctly.

One example we see here:

>         optRedirectStdout: <br>

also the EMBPERL_OPTIONS are set correctly, the optRedirectStdOut isn't
set!! That's why it doesn't work! So please do not load Embperl at server
startup time. After that your code will work.

You can find a hint in the faq at

http://perl.apache.org/embperl/Faq.pod.1.html#How_do_I_load_Embperl_at_serve
r_

but I will add it in the documentation as well, to make it easier to see

GErald


> FWIW the output is below.
>
> thanx Gerald
>
> r.
>
>
> output (netscape source)
> ------------------------
> And now we print to STDOUT
> <table border=0 cellspacing=0 cellpadding=0 bgcolor=e8d35e><tr>
> <td><a href=/>Home</a></td><td>:</td>
> <td><a href=/section1>Section 1</a></td><td>:</td>
> <td><a href=/section2>Section 2</a></td><td>:</td>
> <td><a href=/section3>Section 3</a></td>
> </tr></table>
>
>         HTTP/1.1 200 OK
> Date: Sat, 30 Oct 1999 17:20:08 GMT
> Server: Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.2 OpenSSL/0.9.4
> Content-Length: 5254
> Keep-Alive: timeout=15, max=100
> Connection: Keep-Alive
> Content-Type: text/html
>
> <html>
> <head>
>         <title>Stuff</title>
> </head>
> <body>
>         <p>
>         16400   <br>
>         optRedirectStdout: <br>
>         NOW we print to filehandle OUT<br>
>         <br>
>         <p>
>         <b>Some Docs</b>
>

Reply via email to