joe staner zend con 2008
DESCRIPTION
PHP, LAMP, Windows, ASP.NET ?????? Sometimes you can't choose just one.In this session, long time PHP developer and Microsoft MisfitGeek with explore the plethora of ways you can make PHP and ASP.NET interoperate.TRANSCRIPT
![Page 1: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/1.jpg)
Joe Stagner
Opinionated Misfit GeekMicrosoft Corporation
Developer Tools & Platformshttp://www.MisfitGeek.com
ASPHP Make ‘em Talk !
Bridging PHP & ASP.NET Applications
![Page 2: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/2.jpg)
Why is Microsoft Interested in PHP
( ... and why am I here ? )
![Page 3: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/3.jpg)
Microsoft & PHP
ZendCon & PHPTek / PHPWorks
Zend Partnership
FastCGI
PHP Expression Support
MS SQL Drivers for PHP
CodePlex PHP Projects (Like AJAX PHP)
ADODB ***
URL Rewrite
IIS.NET Guidance
![Page 4: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/4.jpg)
New Stuff from My Team
Silverlight 2.0 b
Dynamic Data
ADO.NET Data Services
MVC
Web Forms “4.0”
![Page 5: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/5.jpg)
Why Run On or Integrate With Windows?
![Page 6: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/6.jpg)
PHP-Nuke
PHPBB2
MD-Pro
b2Evolution
OSCNuke
Moodle
VBulletin
PostNuke
MyPHPNuke
bBlog
Zen Cart
Segue
VBPortal Drupal
Coppermine
phpGroupWare
PHPWebSite
eGroupWare
Serendipity
Xoops
Site@School
TextPattern
Typo3
QwikiWikki
RunCMS Mambo
cPanel
TikiWiki
WordPress
SugarCRM
MyPHPAdmin
e107
Xaraya
OSCommerce
ATutor
WebCalendar
Some Favorite PHP Applications
![Page 7: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/7.jpg)
PHP and the Microsoft Developer Ecosystem.
Windows Ecosystem– Over 600,000 partners in the MS Ecosystem.
– Microsoft makes MUCH more than Windows
– Microsoft is making huge investments interoperability standards and technologies.
(WS-I, etc.)
– Microsoft provides …. a complete turn-key infrastructure
…. Individual best-of-breed applications for you to choose from
– Rapidly growing Service Offerings
– FUTURE TECHNOLOGIES
![Page 8: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/8.jpg)
MS Access
MS Excel
MS FrontPage
MS InfoPath
Live Meeting
MS OneNote
PowerPoint
MS Outlook
MS Project
Small Business
Accounting
MS Visio
MS Word
SharePointBusiness
Manager
MS CRM
Project Server
MS CMS
Commerce
Server
Exchange
Server
MS LCS
MapPoint
Messenger
Virtual Earth
MOM
BizTalk SQL Server
SQL RS
SQL AS
SQL NS
App Center
Identity
Integration
Server
ISA Server
Data Analyzer
MS Mobile
Tablet PC
MS Starter
Kits
Software Options from Microsoft
![Page 9: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/9.jpg)
Great Plains
Axapta
Small
Business
Manager
MS
Enterprise
Reporting
Navision
Retail
Management
MS SolomonWindows
Mobile
Windows
Embedded
Active
Directory
ADAM
Authorization
Manager
Operations
Manager
IIS 6/7
Windows
Server 2003
XML-WS
WSE
Media Center
Windows
Media
Server
Application
Center
System
Management
Server
Windows
Unix
Services
Host
Integration
Server
Windows
Workflow
Vista
Longhorn
Presentation
Foundation
(Avalon)
MSN
Search
Windows
Index
Server
VBA / VSA
Info Bridge
WSH
DirectX
ActiveX
Hosted
Controls
MSMQ Info Card
WinFX
More Software Options from Microsoft
![Page 10: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/10.jpg)
Slverlight
More Software Options from Microsoft
WF or BizTalk
Live Services
Virtual Earth
Media Services
![Page 11: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/11.jpg)
Does PHP on Windows Actually WORK ?
![Page 12: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/12.jpg)
On Windows
Tools (Windows Only)
– VS.PHP
– Phalanger
– NuSphere PHPEd, Delphi for PHP
Tools (Cross Platform)
– Zend Studio
– ActiveState Komodo
Drivers
– MSPHPSQL
![Page 14: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/14.jpg)
PHP & IIS
Versions & App Pools
![Page 15: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/15.jpg)
Example
Membership Integration
![Page 16: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/16.jpg)
ASP.NET Membership
Native MS SQL Provider
– SQL Server or SQL Express
– 3rd party ASP.NET Membership Provider
MySQL
Oracle
XML
![Page 17: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/17.jpg)
Open Source Providers
![Page 18: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/18.jpg)
ASP.NET Membership Integration
ASP.NET– Complete Managed API
PHP on Windows– Microsoft SQL Server Driver for PHP (Willow)
– Web Services
– .NET / COM
PHP On Linux– FreeTDS
– Sockets
– Web Services
![Page 19: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/19.jpg)
Setting Up ASP.NET Membership
aspnet_regsql.exe
![Page 20: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/20.jpg)
Complete Schema
Applications
Membership
Roles
Usage
demonstrated in
the MS SQL
Provider Source
Code.
![Page 21: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/21.jpg)
Enable SQL for TCP/IP
![Page 22: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/22.jpg)
Open the Windows Firewall
![Page 23: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/23.jpg)
ASP.NET Authentication from PHP on Windows
![Page 24: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/24.jpg)
Authentication from PHP/Linux
MS SQL In Windows
– Security Configuration Required
Free TDS On Linux
– MS SQL via ODBC over TCP/IP
Platform Specific PHP Code
![Page 25: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/25.jpg)
Other Integrations
![Page 26: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/26.jpg)
Office Documents from PHP on Windows
![Page 27: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/27.jpg)
Microsoft Silverlight
CLIENT !
Cross Platform
Rich Media
You're hearing all about it !!!
![Page 28: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/28.jpg)
Other Integrations
![Page 29: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/29.jpg)
Silverlight from PHP on Windows & Linux
![Page 30: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/30.jpg)
Other Integrations
![Page 31: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/31.jpg)
Microsoft AJAX
Intergrated with ASP.NET Server
Complealty Independent Client Framework
Server Implementation Samples for Non-
MS
Completely Free
Completely Open Source
![Page 32: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/32.jpg)
Microsoft AJAX PHP on Windows & Linux
![Page 33: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/33.jpg)
Other Integrations
![Page 34: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/34.jpg)
XML Web Services
PHP 5 – Native SOAP Extension
PEAR::SOAP
NuSOAP
ezSOAP
![Page 35: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/35.jpg)
.NET Web Services from PHP
![Page 36: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/36.jpg)
Other Integrations
![Page 37: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/37.jpg)
PHP and COMWhat’s COM ?
PHP doesn’t REALLY speak COM.
COM is the Lingua Franca of Windows
– VB
– C++ (Ours and many others)
– Delphi
– Python
– Perl
– Cobol
– Fortran
![Page 38: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/38.jpg)
Creating a COM Object
Instance
<?php
$myCOMObject =new
COM("COMObject.COMClass");
$myCOMObject->someMethod(“Some Argument”);
?>
![Page 39: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/39.jpg)
COM Objects from PHP on Windows
![Page 40: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/40.jpg)
Other Integrations
![Page 41: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/41.jpg)
Operating System
Common Language Runtime
Base Class Library
ADO .NET and XML
ASP .NETWeb Forms Web Services
Mobile Internet Toolkit
Windows
Forms
Common Language Specification
VB C++ C# J# …V
isu
al S
tud
io .N
ET
.NET Framework and Tools
![Page 42: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/42.jpg)
VS.NET
Common Language Runtime
System
System.Data (ADO.NET) System.Xml
Design
ADO
Adapters
SQL
Globalization
Diagnostics
Configuration
Collections
Resources
Reflection
Net
IO
Threading
Text
ServiceProcess
Security Runtime
InteropServices
Remoting
Serialization
XPath
XSLT Serialization
System.Drawing
JITGC
MSIL
App Domain Loader
Common Type System Class Loader
System.Web (ASP.NET)
Configuration
SessionState
Caching
Security
Simple Web Services
Description
Protocols
UI
HtmlControls
WebControls
Discovery
C#
VC/MC++ Imaging
Drawing2D
Text
Printing
JScript
VB
Platform Adaptation LayerBoot Loader
SyncThreads
Networking
Timers Filesystem
System.WinForms
Design ComponentModel
Debugger
Designers
SDK Tools
CorDBG
ILAsm
ILDbDump
SN
ILDAsm
MetaInfo
PEVerify
EC
MA
CLI
The Shared Source CLI
![Page 43: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/43.jpg)
Base Class Library
System
System.Data System.Xml
System.Web
Globalization
Diagnostics
Configuration
Collections
Resources
Reflection
Net
IO
Threading
Text
ServiceProcess
Security
Common
OleDb
SQLTypes
SqlClient
XPath
XSLT
Runtime
InteropServices
Remoting
Serialization
Serialization
Configuration SessionState
Caching Security
Services
Description
Discovery
Protocols
UI
HtmlControls
WebControls
System.Drawing
Imaging
Drawing2D
Text
Printing
System.Windows.Forms
Design ComponentModel
![Page 44: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/44.jpg)
Microsoft .NET
COM Callable Wrapper
Runtime Callable Wrapper
PHP Restrictions
– OLE 2
Parameterless Constructors
![Page 45: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/45.jpg)
.NET Objects from PHP on Windows
![Page 46: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/46.jpg)
Other Integrations
![Page 47: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/47.jpg)
Microsoft Services
Most are Free
Most are Platform Independent
Most are Ad Free
![Page 48: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/48.jpg)
.Microsoft Services from PHP
![Page 49: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/49.jpg)
Other Integrations
![Page 50: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/50.jpg)
Phalanger
![Page 51: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/51.jpg)
WHY - Helpers you might need.Component Creation
Calling binary .DLLs
Simplifying Interoperability
Remote Instancing
Application Multithreading
Asynchronous Dependencies
Multi Phase Transactions
Aggregating Multi-Interfaced Objects
Type Encapsulation & Abstraction
Object Scope Promotion
Static Instance Access
![Page 52: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/52.jpg)
Integration Options
The Windows File System
SMTP
X.500
WDDX
MS-SQL Server, ADO, ODBC
– What about the new auth provider?
– What about database’d session state
XML
LDAP
![Page 53: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/53.jpg)
Integration Options
Sockets
RSS
XML-RPC
XML Web Services / SOAP
PHP Extensibility Mechanisms
![Page 54: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/54.jpg)
Integration Options
Finally some ADVANTAGE to
HTTP’s stateless protocol.
HTTP Form Tricks
They can be Open
They can be Hidden
They can be Encrypted
Cookie Tricks
They can also be encrypted
![Page 55: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/55.jpg)
Integration Options
Build your own.
PHP on Windows built with VC++ (6)
PECL Extensions
PHP is Open Source
![Page 56: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/56.jpg)
A PHP Project Wish ListA native Active Directory API PHP
An AzMan API for PHP
A PHP Bridge to ADAM
An ASP.NET 2.0 Authentication Provider for PHP
A seamless session state bridge.
A CDO / Exchange Bridge for PHP
PHP-Nuke, Mambo, etc. etc. – On Microsoft SQL
– Optionally in Phalanger
– Optionally using AD
![Page 57: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/57.jpg)
Call to Action !
•Get your FREE Visual Studio
•Understand what products Microsoft makes.
•Email [email protected]
•Read me at http://www.MisfitGeek.com
![Page 58: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/58.jpg)
![Page 59: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/59.jpg)
Thanks •Andrew Stopford
![Page 60: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/60.jpg)
© 2007 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
Q&A
THANKS !
![Page 61: Joe Staner Zend Con 2008](https://reader033.vdocument.in/reader033/viewer/2022052619/55510b8db4c905f10b8b4628/html5/thumbnails/61.jpg)
© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions,
it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.