java - Apache not aware of window path variables? -
i trying same this guy. want able result when this:
$javaexec = shell_exec('java -version 2>&1'); var_dump($javaexec);
however, is:
'java' not recognized internal or external command, operable program or batch file.
if run "java -version" command line (i.e. cmd), get:
java version "1.8.0_65" java(tm) se runtime environment (build 1.8.0_65-b17) java hotspot(tm) 64-bit server vm (build 25.65-b01, mixed mode)
but can't php/apache same result. there need make apache aware of path environment variables?
i tried restarting apache , pc, unfortunately no luck. ideas?
Comments
Post a Comment