Re: memory usage

2003-12-20 Thread Hans de Groot
Hi,

Thanks for all the answers.
The script was just a silly example to demonstrate how I use Embperl. (one block
for perl code and just dump the output at the bottom) I did not test it.
But the tip about the regexp is great and I am gonna try that benchmark stuff.

Anyway I now know I did not forget something with the session stuff. I thought I
might have missed something when installing it.

Thanx again :-)

Regards

Hans de Groot








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



Bytes transfered.

2003-12-20 Thread Hans de Groot
Hi,

I have an embperl script that generates html output. This in just one page
called index.html and is called with extra arguments to show different content.

The apache logfiles logs this:

GET /index.html?id=p100
GET /index.html?id=p79

When I run webalizer there is only one page so there is no way to view what
content the visitors visited. (every thing after the ? is stripped)

I thought I have Embperl generate my own logfile but of course this creates some
problems.

I can manage all the normal information but the server codes (200,304,404) are a
problem as are the bytes transfered. The server codes could be fixed (I just
put 200 or 304) but error pages cannot since embperl would fail to execute.) 
but is there a way to request the total size of the transfered data? Maybe just
before embperl exits?

Or is this a totally bad idea and should I convert the apache logfile and just
translate the index.html?id=p100 into something like index.html_page=100?

Is there an other solution? I gues many people have this problem?

Regards

Hans de Groot


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



Re: memory usage / session cleanup

2003-12-20 Thread Pierre Etchemaite
Le Fri, 19 Dec 2003 10:38:40 -0800, Wim Kerkhoff <[EMAIL PROTECTED]> a écrit
:

> You can't do this with MySQL, since it won't let you set a default value 
> to a function, only a constant (null, 1, 'foo', etc).

For MySQL, it seems that the way to go are TIMESTAMP fields:

http://www.mysql.com/doc/en/DATETIME.html

Those will be updated each time the record is, but in this case this looks
appropriate.

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



Re: memory usage / session cleanup

2003-12-20 Thread Wim Kerkhoff
Pierre Etchemaite wrote:

Le Fri, 19 Dec 2003 10:38:40 -0800, Wim Kerkhoff <[EMAIL PROTECTED]> a écrit
:
 

You can't do this with MySQL, since it won't let you set a default value 
to a function, only a constant (null, 1, 'foo', etc).
   

For MySQL, it seems that the way to go are TIMESTAMP fields:

http://www.mysql.com/doc/en/DATETIME.html

Those will be updated each time the record is, but in this case this looks
appropriate.
 

Ok, thanks for the clarification. Pg's handling of default values, 
triggers, etc still seems way better, IMO :-)

Wim

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