Hey PHPer's-
I've got a bit of code that just detects the browser version and attaches the 
appropriate style sheet.

<html><head>
<?php 
$ua = get_browser ();
if ( ( $ua->browser == "Netscape" ) && ( $ua->version < 5 ) ) { 
  stylesheet1
} else {
  stylesheet2
}
<body>....

It worked fine for a while, but recently started getting a fatal error on the line 
with: $ua = get_browser ();
"Fatal error: Nesting level too deep - recursive dependency? in 
D:\www\includes\header_test.php on line 10"

I'm running PHP Version 4.2.1 on an IIS, Windows NT 5.0 build 2195.
Anyone out there have any suggestions?

Thanks,
Travis



_______________________________________________
This e-mail has been Scanned for viruses by
Guinevere 2.0.6. Texas A&M Athletics
_______________________________________________


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to