Re: problem calling a file under mod_perl2

2007-05-29 Thread Malcolm J Harwood
On Tuesday 29 May 2007, Clinton Gormley wrote: > > Ok, then I finally understand what is happening. But is there any other > > option to use every script under mod_perl even calling it from php? > > The only way I can think of would be to make a web request in PHP, so > the PHP program does an HTT

Re: few newbie quesitons..

2007-05-29 Thread Perrin Harkins
On 5/29/07, Jay Buffington <[EMAIL PROTECTED]> wrote: On 5/6/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On 5/6/07, James. L <[EMAIL PROTECTED]> wrote: > > my question is > > once the app produce the html, does the memory > > allocated by the parsed data get released to perl? > > that memory

Re: few newbie quesitons..

2007-05-29 Thread Jay Buffington
I'm a little behind here, but this thread caught my eye: On 5/6/07, Perrin Harkins <[EMAIL PROTECTED]> wrote: On 5/6/07, James. L <[EMAIL PROTECTED]> wrote: > my question is > once the app produce the html, does the memory > allocated by the parsed data get released to perl? > that memory will b

Re: problem calling a file under mod_perl2

2007-05-29 Thread Clinton Gormley
> > > > Ok, then I finally understand what is happening. But is there any other > option to use every script under mod_perl even calling it from php? The only way I can think of would be to make a web request in PHP, so the PHP program does an HTTP request to your web server, to call the perl sc

Re: problem calling a file under mod_perl2

2007-05-29 Thread Alicia Amadoz
> > There's your problem - you aren't using mod_perl at all - the system > call launches a new perl interpreter, compiles the code, runs it and > exits. > > not very efficient - same as using ordinary CGI. > Ok, then I finally understand what is happening. But is there any other option to use e

Re: problem calling a file under mod_perl2

2007-05-29 Thread Clinton Gormley
On Tue, 2007-05-29 at 16:32 +0200, Alicia Amadoz wrote: > Hi, > > How I should write a warn() statement in startup.pl? I am new to Perl > and I wrote 'warn;' and 'warn(use lib 'path');' but the errors where > like 'Warning: something's wrong'. That means that it is being loaded - the "something's

Re: problem calling a file under mod_perl2

2007-05-29 Thread Alicia Amadoz
Hi, How I should write a warn() statement in startup.pl? I am new to Perl and I wrote 'warn;' and 'warn(use lib 'path');' but the errors where like 'Warning: something's wrong'. Another thing that I am thinking it could be related to my problem is that I am using php on my website and I call the

Re: problem calling a file under mod_perl2

2007-05-29 Thread Perrin Harkins
On 5/29/07, Alicia Amadoz <[EMAIL PROTECTED]> wrote: In startup.pl there are some modules called and they were also called from my script file. So, I deleted the use syntax from my script file so that the modules only were called from startup.pl. If I have an error like 'Can't locate object metho

Re: problem calling a file under mod_perl2

2007-05-29 Thread Alicia Amadoz
> > How do you know it isn't being loaded? > > - Perrin > > In startup.pl there are some modules called and they were also called from my script file. So, I deleted the use syntax from my script file so that the modules only were called from startup.pl. If I have an error like 'Can't locate o

Re: problem calling a file under mod_perl2

2007-05-29 Thread Perrin Harkins
On 5/29/07, Alicia Amadoz <[EMAIL PROTECTED]> wrote: I have found that somehow 'startup.pl' isn't loaded or it can't be read. It has rw-r--r-- permissions. Have I the correct configuration for mod_perl2? That should be fine, but there might be an enclosing directory with bad permissions. The s

Re: problem calling a file under mod_perl2

2007-05-29 Thread Alicia Amadoz
Hi, I have found that somehow 'startup.pl' isn't loaded or it can't be read. It has rw-r--r-- permissions. Have I the correct configuration for mod_perl2? I would be very grateful if anyone could help me with this. Regards. Here is my httpd.conf: LoadModule perl_module modules/mod_perl.so #Ali