LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache logging (https://www.linuxquestions.org/questions/linux-software-2/apache-logging-81272/)

WiWa 08-12-2003 09:21 AM

Apache logging
 
Hi,

How can I log the screen resolution and the screen colors (..., 16-bit/24-bit) using the Apache log files (access_log).

I'm not interested in already existing tools. I want to write my own Perl or Python script on these log files. I just need it captured in one of the log files?

Any input is welcome!

Wim

Azmeen 08-12-2003 09:56 AM

Those information are only available via client-side scripting languages like JavaScript.

bleah-man 08-13-2003 02:33 AM

I did have a script for this - yeah it was javascript too.. Mine is very dirty and I'm sure there are more eloquent solutions out there on the web.

Essentially what you need to do is measure the screen. I used a transparent 1 px gif and loaded it 100%x100% and took a measurement of the image. Then put this into an XML packet and fired it off at the server to be stored in a mysql table with a neat php script. - I prefer DB storage to flat files as I'm a bit anal about disk usage!

I presume that you're writing some kind of stats package or rendering graphics dependent on screen size - so either way you will probably need to write something bespoke - I hope this provided you with a starting point.

Bleah


All times are GMT -5. The time now is 08:57 PM.