Menu

[r172]: / trunk / php-java-bridge / tests.mono+net / load_assembly.php  Maximize  Restore  History

Download this file

15 lines (10 with data), 251 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/usr/bin/php
<?php
if(!extension_loaded('java')) {
dl('java.' . PHP_SHLIB_SUFFIX);
}
$Assembly=new MonoClass("System.Reflection.Assembly");
$Assembly->Load("sample_lib");
$hello=new Mono("sample.hello");
echo $hello->World("world") . "\n";
?>