Hi KhunJack,
you're mixing client-side JavaScript with server-side PHP: That's always a problem especially in the way you are doing.
In this case you are starting output with
"<html>
<head>
<script language="Javascript" type="text/javascript">
...
"
but after that you are using session_register
"
// iniate ...should be on every page !!! ????
$oVisitors = new visitors;
session_register("visitor_info");
$aArgs["javaon"] = $javaOn;
...
"
and that's the main problem: You can only send headers [that's what 'session_register' does] if you DIDN'T START OUTPUT BEFORE.
My suggestion for a solution:
----------------------------
:huh: 1. Have a look at
http://www.garykeith.com/ and read the PHP-manual concerning 'browsecap.ini'. PHP uses browscap.ini in their get_browser() function and Gary is their official source for that file. You can then get browser-info via PHP!
-or-

2. Try this:
-------------------------------------------------
<?
if ($_POST) {
echo "<table border=1>";
foreach ($_POST as $key=>$value) {
echo "<td>$key</td><td>$value</td></tr>\n";
}
echo "</table>";
exit;
}
?>
<html>
<body>
<form action="<?php echo $PHP_SELF; ?>" method="POST" name="browser_form">
<input type="hidden" name="screenWidth">
<input type="hidden" name="screenHeight">
<input type="hidden" name="appName">
<input type="hidden" name="appCodeName">
<input type="hidden" name="appVersion">
<input type="hidden" name="platform">
<input type="hidden" name="javaOn">
<input type="hidden" name="browser">
</form>
<script language="JavaScript">
function GetBrowserInfo() {
var agt=navigator.userAgent.toLowerCase();
var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1));
var is_nav2 = (is_nav && (is_major == 2));
var is_nav3 = (is_nav && (is_major == 3));
var is_nav4 = (is_nav && (is_major == 4));
var is_nav4up = (is_nav && (is_major >= 4));
var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1) || (agt.indexOf("; nav") != -1)) );
var is_nav5 = (is_nav && (is_major == 5));
var is_nav5up = (is_nav && (is_major >= 5));
var is_ie = (agt.indexOf("msie") != -1);
var is_ie3 = (is_ie && (is_major < 4));
var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) );
var is_ie4up = (is_ie && (is_major >= 4));
var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
var is_ie5up = (is_ie && !is_ie3 && !is_ie4);
var is_aol = (agt.indexOf("aol") != -1);
var is_aol3 = (is_aol && is_ie3);
var is_aol4 = (is_aol && is_ie4);
var is_opera = (agt.indexOf("opera") != -1);
var is_webtv = (agt.indexOf("webtv") != -1);
if (is_nav4up) {
this.browser = "Netscape"; // netscape 4+ but not NS5
}else if (is_webtv) { // Web TV
this.browser = "Webtv";
}else if (is_aol || is_aol3 || is_aol4) { //AOL
this.browser = "AOL";
}else if (is_opera) { // Opera
this.browser = "Opera";
}else if (is_ie3||is_nav3) { // 3.0 version browsers
this.browser = "Version3Browser";
}else if (is_ie4up) { //IE4 & IE5 but returns IE4
this.browser = "Microsoft Internet Explorer";
}else if (is_nav5up) { // Netscape 5
this.browser = "Netscape";
}
document.browser_form.browser.value = this.browser;
document.browser_form.screenHeight.value = screen.height;
document.browser_form.screenWidth.value = screen.width;
document.browser_form.appName.value = navigator.appName;
document.browser_form.appCodeName.value = navigator.appCodeName;
document.browser_form.appVersion.value = navigator.appVersion.substring(0,4);
document.browser_form.platform.value = navigator.platform;
document.browser_form.javaOn.value = navigator.javaEnabled();
document.forms["browser_form"].submit();
}
GetBrowserInfo();
</script>
</body>
</html>
-------------------------------------------------

First: understand "my" different way of thinking: I seperated Javascript and PHP completely; that's the only solution I can think of regarding your problem.
hih, zara
:blink: PS: this is my first post in this forum, I'm not sure, wether I receive mail when you -hopefully- reply. If the are any questions or whatever left:
grabenhorst@pioneer.de.
Yeah, my english is not native. pls do not mention any mistakes...
bye, zara