Warning: main(/nfs/cust/0/93/06/660390/web/demos/scripts/browserdetect.php): failed to open stream: No such file or directory in /nfs/cust/0/93/06/660390/web/demos/rgproperties/index.php on line 7
Warning: main(): Failed opening '/nfs/cust/0/93/06/660390/web/demos/scripts/browserdetect.php' for inclusion (include_path='.:/usr/local/php/include') in /nfs/cust/0/93/06/660390/web/demos/rgproperties/index.php on line 7
Fatal error: Call to undefined function: browser_detection() in /nfs/cust/0/93/06/660390/web/demos/rgproperties/index.php on line 8
I know enough to know that this basically means browserdetect.php isn't being found, and I suspect that's because I'm not properly linking the file into my main index.php file. Is there a better way?
<?php include($_SERVER['DOCUMENT_ROOT'] . "/demos/scripts/browserdetect.php"); $browsername = browser_detection(browser); print '>link rel="Stylesheet" href="rgstyle_' . $browsername . '"<'; ?>(The > and < in the last line are inverted solely because I can't make the LINK tag appear in the CODE block otherwise. I'm not that bad. )
Oh, and the "browserdetect.php" script is courtesy of Harald Hope, and can be found at [a href=\"http://techpatterns.com/downloads/php_browser_detection.php\" target=\"_blank\"]http://techpatterns.com/downloads/php_browser_detection.php[/a].