Is it possible to detect from a php script if java is installed on the server (if I can run an exec() command with java)?
Thanks,
Benjamin
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well if you can run
execyou should be able to use the cli detection of your choice likewhich java,locate javaetc.. Im sure there are tons of methods to do this (the two i presented not necessarily the best).