Fatal error: Nesting level with get_browser()
| From: | Travis Ward | Date: | Mon, 14 Oct 2002 18:58:46 +0000 |
| Subject: | Fatal error: Nesting level with get_browser() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16375@lists.php.net to get a copy of this message | ||
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
_______________________________________________