Re: Help mod_perl 1.27 and DB

2002-11-08 Thread Rafiq Ismail (ADMIN)
On Fri, 8 Nov 2002, Tony Simbine wrote:
> GET http://www.myhost.com/myscript.perl
>  >now I get the results as expect
> GET http://www.myhost.com/myscript.perl
>  >now I get an error
> wenn i reload my apache-webserver, then i allways get the expected page.
> how can i resolve it?

You know he's right?  It's always best to show what your errors actually
are.

Read the modperl guide and it will show you that this sort of behaviour
comes from globals bouncing between processes.  Scrop your variables and
you'll be a happy man.  Always use strict and .. it's a friday night, I'm
going to frag now.  Read the guide, it's in there.  It's under common
pitfalls or something of that nature.
byebye.








Re: Help mod_perl 1.27 and DB

2002-11-08 Thread Perrin Harkins
Tony Simbine wrote:


wenn i reload it, then sometimes i get the document or an error.



Well, what's the error?  Look at your log file.  Then look at 
http://perl.apache.org/docs/1.0/guide/troubleshooting.html and see if 
the error is listed there.

- Perrin



Help mod_perl 1.27 and DB

2002-11-08 Thread Tony Simbine
Hallo,

i wrote a script in mod_perl, but often it loses the db-connection.
i'm using mysql as DB.

how can i stop this?

for example

GET http://www.myhost.com/myscript.perl
>now I get the results as expect

GET http://www.myhost.com/myscript.perl
>now I get an error

wenn i reload it, then sometimes i get the document or an error.


wenn i reload my apache-webserver, then i allways get the expected page.


how can i resolve it?


thanks in advance

tony simbine