user error: Can't open file: 'node_counter.MYI' (errno: 145) query: SELECT totalcount, daycount, timestamp FROM node_counter WHERE nid = 173 in /srv/www/htdocs/tekpal/includes/database.mysql.inc on line 66.
SearchUser loginNavigation |
A dirty little browser checkerSubmitted by elmer on Thu, 06/02/2005 - 6:41pm.
This tidbit just grabs the raw browser ID string from the $_SERVER variable. It looks for a couple of strings that identify IE, Opera, Mozilla, and Netscape 7.x. If it doesn't find one of these it assumes an old browser that can't deal with things like CSS and alerts the user. Finally, it sets a $_SESSION variable that can be checked later. Quick and dirty, but works for me :) download | 823 bytes
( categories: Code Samples | PHP )
|
Google SearchSearch AmazonActive forum topicsFiles- Code Samples (29)
- .NET (4) - ASP - ColdFusion (1) - Java (4) - JavaScript (2) - PERL - PHP (9) - Python (3) - Ruby (1) - Courtroom Technology (2) - Policies - Testimonials (1) - IT Policies and Forms (31) - Forms (7) - Org Charts - Policies (10) - Strategic Plans (1) - Useful Documents (4) - HowTo - Templates (1) - User Guides (1) - Utilities (3) - Windows (1) We recommendAds by Google |
user error: Can't open file: 'node_counter.MYI' (errno: 145) query: UPDATE node_counter SET daycount = daycount + 1, totalcount = totalcount + 1, timestamp = 1328469333 WHERE nid = 173 in /srv/www/htdocs/tekpal/includes/database.mysql.inc on line 66.
user error: Duplicate entry '7623384' for key 1
query: INSERT INTO accesslog (title, path, url, hostname, uid, timestamp) values('A dirty little browser checker', 'node/173', '', '38.107.179.222', 0, 1328469333) in /srv/www/htdocs/tekpal/includes/database.mysql.inc on line 66.