Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-12-2003, 09:21 AM   #1
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Rep: Reputation: 15
Apache logging


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!

Old 08-12-2003, 09:56 AM   #2
Senior Member
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Those information are only available via client-side scripting languages like JavaScript.
Old 08-13-2003, 02:33 AM   #3
Registered: Nov 2002
Location: London UK
Distribution: RedHat 9
Posts: 58

Rep: Reputation: 15
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable logging RH 7.3 qmail-apache etc DropHit Red Hat 3 04-13-2005 04:44 AM
Apache mod_security logging everything? ridertech Linux - Security 2 08-13-2004 01:10 PM
Disable all Apache 2.x logging hakcenter Linux - Networking 2 12-05-2003 12:34 AM
Apache logging stops at 4k boundaries shilbert Linux - Software 2 06-26-2003 12:14 PM
apache logging chege question santellij Linux - Software 5 11-18-2002 09:20 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration