Hi!

Does anubody know about strange behaviour, when modperl+Apache+Solaris
gets just like blinded about perl's @INC path. modperl reports that it
cannot find module Something.pm, gives its @INC path - which is completely
correct. BUT, the module Something.pm complained about lies peacefully in
declared @INC path. And is accessible. Problem disappear after Apache
restarts. And appears again for some time.


Neeme Vool

Tel: +372 7 302 113
Fax: +372 7 302 111
E-mail: [EMAIL PROTECTED]

On Wed, 21 Mar 2001, Gerald Richter wrote:

> >
> > If not a call to get the path to an EmbperlObject located object, how
> > about a flag on Execute to tell it to process *nothing*?  I have a
> > problem now that I'm processing files uploaded to the web site, and I
> > definitely do *not* want them to have Perl code in them.  I'm working
> > around it now by finding the file myself and just printing it out,
> > but it would be nice if I could just call Execute on them.
>
> I have just implemented this feature in the current developement version of
> Embperl 2.0, but unfortunately 2.0 is not ready for production right now :-(
>
> We can emulate at least the Text only syntax in Embperl 1.3, try the
> following patch:
>
> In Embperl.pm Line 941 change
>
>             $rc = CleanCallExecuteReq ($r, $$req{'param'}) ;
>
> to
>
> if ($req -> {'syntax'} eq 'Text')
>     {
>     if (open FH, "<$Inputfile")
>         {
>         local $/ = undef ;
>         print OUT <FH> ;
>         close FH ;
>         }
>     else
>         {
>         $r -> logerror (rcFileOpenErr, $Inputfile) ;
>         }
>     }
> else
>     {
>             $rc = CleanCallExecuteReq ($r, $$req{'param'}) ;
>     }
>
>
> Now you can inlcude your text files with
>
> Execute ({inputfile => '*', syntax => 'Text'}) ;
>
> Embperl 2.0 will allow not only Embperl and pure Text syntax, but you can
> define your own syntaxes. This will be available in the next beta and the
> above patch is compatible with 2.0.
>
> Let me know if this works for you
>
> Gerald
>
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
>
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to