[PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread Matt Livingston
Hey List, I want to know if it is possible to use PHP to find out if a visitor has Java Runtime Environment installed on a computer. Is there a way to use PHP to find this similiar to how PHP can be used to find out browser info? Thanks in advance for your help. -- -Matt Livingston

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread Jim Lucas
Matt Livingston wrote: Hey List, I want to know if it is possible to use PHP to find out if a visitor has Java Runtime Environment installed on a computer. Is there a way to use PHP to find this similiar to how PHP can be used to find out browser info? Thanks in advance for your help. No,

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread tedd
At 3:17 PM -0600 9/5/07, Matt Livingston wrote: Hey List, I want to know if it is possible to use PHP to find out if a visitor has Java Runtime Environment installed on a computer. Is there a way to use PHP to find this similiar to how PHP can be used to find out browser info? Thanks in

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread David Powers
tedd wrote: At 3:17 PM -0600 9/5/07, Matt Livingston wrote: I want to know if it is possible to use PHP to find out if a visitor has Java Runtime Environment installed on a computer. But you can attempt to run a js script from php to see if javascript is enabled. Java Runtime Environment

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread Satyam
the page it resides in. - Original Message - From: Matt Livingston [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, September 05, 2007 11:17 PM Subject: [PHP] Using PHP to determine if user has Java installed Hey List, I want to know if it is possible to use PHP

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread tedd
At 11:18 PM +0100 9/5/07, David Powers wrote: tedd wrote: At 3:17 PM -0600 9/5/07, Matt Livingston wrote: I want to know if it is possible to use PHP to find out if a visitor has Java Runtime Environment installed on a computer. But you can attempt to run a js script from php to see if

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread Paul Scott
On Wed, 2007-09-05 at 20:41 -0400, tedd wrote: Java Runtime Environment == Java JavaScript != Java How about something like: if ( navigator.javaEnabled() ) { alert('JRE is installed!'); window.location=page_with_a_JAVA_applet; } else { alert('JRE is not installed!');

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread Matt Livingston
Thanks, http://www.php.net/manual/en/ref.java.php has the information I needed. The purpose of this script is on a website I will be managing we distribute software written in Java, so when they go to download the software I thought it would be a nice touch to alert them if they do not have JRE