writing to database in Apache module

View: New views
2 Messages — Rating Filter:   Alert me  

writing to database in Apache module

by Andrej van der Zee-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I wrote my first Apache module that gathers performance data of each
request. Currently, I write the information to a log file in the
log_transaction hook function. I would like to write this to a MySQL
database instead. What is the recommended way to do this?

Cheers,
Andrej


--
Andrej van der Zee
2-40-19 Koenji-minami
Suginami-ku, Tokyo
166-0003 JAPAN
Mobile: 0031-(0)80-65251092
Phone/Fax: 0031-(0)3-3318-3155

Re: writing to database in Apache module

by Jérôme Renard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Andrej van der Zee a écrit :
> Hi,

Hello

> I wrote my first Apache module that gathers performance data of each
> request. Currently, I write the information to a log file in the
> log_transaction hook function. I would like to write this to a MySQL
> database instead. What is the recommended way to do this?

You may find the following links interresting:

- http://people.apache.org/~niq/dbd.html
- http://httpd.apache.org/docs/2.2/mod/mod_dbd.html

Best Regards

--
Jérôme :)
LightInTheBox - Buy quality products at wholesale price!