| home | forums |
resources |
search |
news | join | members: 6448 |
|
Hiveminds | Thu, 2007-11-08 16:07 tags: Developer Zone, Java This does not actually check for java on the machine. It just checks to see if the browser has java on or off. PHP cannot do this alone being a server-side language so you need to implement this using javascript under PHP. You also have to be a little bit clever and set the script up so that the output is placed in a javascript variable that is readily available to PHP.
<?phpI needed both a check for javascript and one for java. I managed to do this by using javascripts redirect and a built in javascript check for java enabled browsers. The following is a Drupal function but can be moded to suit any other PHP need.
<?phpThis article brought to you by the
Hiveminds Magazine - Staff. Contact us if you want to post an article or announcement anonymously |
Joomla! London Hotels
Silverlight Laptop Reviews
Web Developers Just Dial International Calls
Joomla! Excel Training Courses
eRuby excel courses in london
Content Management Systems Data Recovery
|
NewsletterGet updates on Hiveminds services, articles and downloads by signing up for the newsletter. |
Editor's choiceSome of the better articles, stories and tutorials found at Hiveminds. |
Find moreFind more of Hiveminds articles, stories, tutorials and user comments by searching. |
Picked linksHand picked websites and articles from around the web that provide quality reading. |