...

View Full Version : Java & Json in Php



SoftDev
01-10-2008, 08:44 AM
Dear friends!

In my "php.ini", Settings are as below

extension=php_java.dll
;extension=php_json.dll

but "php -m " display
java
json

but "print phpinfo();" display
java not enabled.
json enabled.

but "print_r(get_loaded_extensions());" display
[5] =>json
and java is absent in this array!

Php Code :
if (extension_loaded('java')) print '<br/>Java is loaded.';
else print '<br/>Java is not loaded.';
if (extension_loaded('json')) print '<br/>Json is loaded.';
else print '<br/>Json is not loaded.';
Says :
Java is not loaded.
Json is loaded.

So can someone tell me which one is saying the truth :confused:.
I need both Java and Json to be active for use in PHP.
I am using Windows XP.

Thanks in Advance!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum