How can I detect Opera with PHP? Im using lightbox with drupal and their is a bug in opera, so if the site is being viewed with opera I want to print a normal link instead of the lightbox.
I found this link but it just says 'other browser' not opera: http://drupal.org/node/65903
This prints the browser being used and seems to work fine:
<?php echo $_SERVER['HTTP_USER_AGENT']; ?>
So can I modify the code to print something if the browser is opera? If so, are their any pit falls to this method?
Thanks