![]() |
|
IT и Связь Обсуждение "айтишных" вопросов и средств связи |
![]() |
|
Опции темы | Опции просмотра |
![]() |
#1 |
Заслуженный Участник
|
![]()
http://www.php.net/~sterling/mono/
INTRODUCTION The Mono extension allows PHP to access .NET assemblies via the Mono (http://www.go-mono.com/) library. To use this extension, download it, copy it to the "ext/" directory in your PHP5 cvs tree as "mono." Re-run ./buildconf and then type ./configure --with-mono: $ cp -rf php_mono_0_2 php5/ext/mono $ cd php5 $ ./buildconf [snip output] $ ./configure --with-mono [snip output] Once you have compiled mono and php, try the following "Hello World" code. <?php Console = new Mono('System.Console'); $Console->WriteLine('Hello World'); ?> You can see some other various samples. This code is very experimental. While it is pretty full featured at this point, it is still alpha software. The current TODO is: * Marshall PHP arrays into System.Array types * Allow people to specify arrays and parameter arrays in method signatures * Allow people to specify return values in method signatures * Clean up the source code |
![]() |
![]() |
Зарегистрируйтесь или войдите под своим именем, чтобы спрятать этот рекламный блок |