running php and wordpress in.net clr and iis svetlin nakov ph.d., computer science wordcamp sofia,...

13
WordPress.NET Running PHP and WordPress in .NET CLR and IIS Svetlin Nakov Ph.D., Computer Science www.nakov.co m WordCamp Sofia, 26-Oct-2013

Upload: maximillian-skinner

Post on 03-Jan-2016

218 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

WordPress.NETRunning PHP and WordPress in .NET CLR and IIS

Svetlin Nakov

Ph.D., Computer Science

www.nakov.com

WordCamp Sofia, 26-Oct-2013

Page 2: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

Contents

Phalanger

PHP Compiler for .NET

Phalanger Toolsfor Visual Studio

WP.NET

WordPress runningin Phalanger and IIS

Integrating PHP and C# Code2

Page 3: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

PhalangerPHP Compiler for .NET

Page 4: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

Phalanger: The PHP Compiler

Phalanger is PHP compiler for .NET Compiles the PHP code into .NET

assemblies (MSIL code in .DLL files)

Supports Windows (.NET) and Linux (Mono)

Phalanger allows: Run PHP code in .NET application

Combine ASP.NET / MVC and PHP code

Mix PHP with C# seamlessly

http://www.php-compiler.net

4

Page 5: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

Compiling PHP Codewith

Phalanger

Live Demo

Page 6: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

Phalanger Toolsfor Visual Studio

Create, Compile, Run and Debug PHP Projects in VS

Page 7: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

Phalanger Tools for VS

Live Demo

Page 8: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

WP.NETRunning WordPress in .NET Framework

and IIS

Page 9: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

WP.NET: Running WordPress in .NET, Phalanger and IIS

Installing WP.NET Install Phalanger from http://

phalanger.codeplex.com

Download WP.NET from http://wpdotnet.com

Create a virtual directory in IIS

Configure Web.config and wp-config.php

Configure the MySQL DB / run the WP install

Optionally install IIS_URL_rewrite for IIS

9

Page 10: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

C# Plugin in WP.NETLive Demo

Page 11: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

WP.NET Performance WP.NET performance on Windows 7 and IIS 7.5

Source: http://php-compiler.net/benchmarks

11

Page 12: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

Phalanger: Problems WordPress 3.7 is not supported in Phalanger Works but is not stable

Phalanger developer tools for Visual Studio Have free limited edition E.g. the autocomplete feature is

missing in the free version costs $149 / year

The initial PHP compilation is slow WP.NET has long startup time

12

Page 13: Running PHP and WordPress in.NET CLR and IIS Svetlin Nakov Ph.D., Computer Science  WordCamp Sofia, 26-Oct-2013

WordPress.NET

Questions? ??

? ? ??

?

?

?

?