PHP konferencija - Microsoft

1,343 views

Published on

PHP konferencija: "Developing PHP applications on Microsoft platform" - Tautvydas Dagys

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,343
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • PHP 5.3 does not have ISAPI support
  • PHP konferencija - Microsoft

    1. 1. Developing PHP applications on Microsoft platform<br />Tautvydas Dagys (Microsoft Lithuania)<br />
    2. 2. What will we cover?<br />Web stack the Microsoft way<br />PHP on Windows<br />Tools, practices et al.<br />
    3. 3. Microsoft web stack<br />A powerful set of tools, servers and technologies optimized for building and hosting next generation web applications<br />Microsoft.com/web<br />
    4. 4. Included is…<br />Windows Server (W)<br />IIS 7.x (I)<br />SQL Server 2008 R2 (S)<br />PHP?? (P)<br />.NET (N)<br />
    5. 5. Back to PHP…<br />PHP has been<br />around on Windows<br /> for a decade<br />Windows has been used<br />as a main<br /> development environment<br />
    6. 6. We worked with...<br />The community <br /> who provided valuable feedbackand shaped development.<br />welcomedour efforts very enthusiastically<br /> brought vast experienceand guidance.<br />
    7. 7. PHP on Windows - History<br />
    8. 8. This is Now…<br />Microsoft / Zend partnership (October ’06)<br />FastCGI (September ’07)<br />SQL Server PHP Driver (October ’07)<br />Contribution to ADOdb† (July ‘08)<br />Web Platform Installer (December ‘08)<br />Web Application Gallery (March ‘09)<br />Virtual Earth Integration Kit (May ’09)<br />PHP 5.3 release (June ‘09)<br />Windows Azure SDK (July ‘09)<br />Windows Cache Extension (November ‘09)<br />Zend Framework supports Azure (January ‘10)<br />† Microsoft’s first LGPL contribution ever<br />
    9. 9. PHP 5.3 – new release<br />Completely rewritten from the ground up<br />With Visual C++ 9.0<br />That means more optimized code<br />Code rewritten to be a good “Windows citizen”<br />98%+ test now pass on Windows<br />New work in the installer<br />Installer is being rebuilt for Windows<br />Windows is now a first-class platform in PHP world<br />
    10. 10. Does Anybody out there even Care?<br />5.3 Final – Released June 2009<br />Was Downloaded in the period of July 2009 to August 31, 640.000<br />
    11. 11. Running PHP on Windows<br />PHP can be run on Windows in 3 modes<br />| CGI<br />| FastCGI<br />| ISAPI<br />
    12. 12. CGI vsFastCGI<br />(CGI on Windows) == SLOW !!!<br />New PHP process per request<br />FastCGI == (CGI on steroids)<br />Re-use PHP processes in a process pool<br />Single-threaded execution environment<br />Use the non-thread-safe PHP builds with IIS FastCGI<br />Q: What about PHP ISAPI?<br />A: Do not use it! Use FastCGI instead.<br />
    13. 13. Targeting SQL Server<br />The SQL Server Driver for PHP is designed to enable reliable, scalable integration with SQL Server for PHP applications deployed on the Windows platform.<br />Native PHP 5 extension<br />Reading and writing of SQL Server data from within PHP scripts. <br />Compatible with all editions of SQL Server 2005 and SQL Server 2008 (including Express editions).<br />
    14. 14. How about Cloud Computing?<br />Microsoft Cloud platform – Windows Azure<br />PHP is a first class citizen on Windows Azure<br />You can deploy:<br />PHP + MySQL apps<br />PHP + SQL Azure Apps<br />PHP + Cloud Storage apps<br />Wordpress is working on Windows Azure deployments<br />
    15. 15. Developing with PHP<br />
    16. 16. #1: set up the dev box<br />Web platform installer to help you<br />Download from microsoft.com/web<br />Allows easy install of major compontents and tools<br />
    17. 17. #1: set up the dev box<br /><ul><li>http://www.microsoft.com/web/platform</li></li></ul><li>#2: hit the Zone<br />Either use Visual Studio with add-on from JCX Software<br />Expression Web 2.x and above support PHP<br />Intellisense<br /> Local web server<br /> Color-coded syntax<br /> Integrated FTP client<br />SuperPreview<br />
    18. 18. Expression Web Photoshop import<br />
    19. 19. Expression Web – PHP Syntax highlighting<br />
    20. 20. Expression Web PHP IntelliSense<br />
    21. 21. Expression Web SuperPreview<br />
    22. 22. #3: utilize the platform<br />IIS has a number of addins to make your life easier<br />Database Manager<br /> SEO Toolkit<br /> URL Rewriter<br />Web deployment tool is not just for .NET apps!<br />
    23. 23. #4: utilize the ecosystem<br />Microsoft has a rich ecosystem of apps in its Web Application Gallery<br />To which you can contribute<br /> by packing your apps as for webPI<br />
    24. 24. Interop and PHP<br />Several projects under “Interoperability bridges” initiative<br />Projects used to provide a bridge between technologies in Windows and PHP world<br />And this is:<br />oData SDK for PHP<br />SQL Server Reporting Services SDK for PHP<br />Silverlight samples<br />SQL Server CRUD app generator<br />Accelerators and Web slices for PHP<br />Virtual Earth PHP toolkit<br />
    25. 25. Get the tools and the platform for free!<br />3 Spark’s for your success:<br />Microsoft DreamSpark – for Students<br />Microsoft WebsiteSpark – for Web-agencies up to 10 Employees<br />Microsoft BizSpark – for Startups<br />www.dreamspark.com<br />www.websitespark.com<br />www.bizspark.com<br />
    26. 26. Demo: PHP Development on Windows<br />Show me some staff<br />
    27. 27. So what can you get from Windows Web platform?<br />Quick PHP Dev platform setup for Windows via WebPI<br />Professional tools: Visual Studio + JCX or Expression Web<br />IIS Server with FastCGI and bunch of extensions<br />SQL Server and SQL Server driver<br />PHP interoperability bridges<br />PHP Deployment on Windows Azure<br />Growing community support<br />
    28. 28. Hang on! You got those links?<br />PHP on Windows:<br />php.iis.net <br />Php 5.3 Builds:<br /> windows.php.net<br />IRC channel:<br /> irc.freenode.net/#php-dev-win<br />PHP Windows Training Kit:<br /> http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c8498c9b-a85a-4afa-90c0-593d0e4850cb<br />PHP Windows Azure Training Kit:<br />http://www.microsoft.com/azure/trainingkit.mspx<br />Native SQL Driver for PHP:<br /> codeplex.com/sql2k5php<br />Windows SDK:<br /> tinyurl.com/6z57rv<br />PHP + Windows Azure:<br />phpazure.codeplex.com<br />PHP + ADO.NET Data Services:<br />phpdataservices.codeplex.com <br />PHP + Wirtual Earth Services:<br />http://virtualearthphpkit.codeplex.com/<br />
    29. 29. Konkursai programuotojams<br />Arba kaip nemokamai nukeliauti į Las Vegą?<br />
    30. 30. European WinPHP Challenge<br />http://www.eurowinphp.com/<br />This year registration is closed on April 1<br />The rules:<br />The application must be build in PHP.<br />The application must be deployed on Windows.<br />You can start coding at April 1st the judging starts at 1st of June.<br />You have to write a weekly blogpost about your experiences of building your application.<br />
    31. 31. Euro WinPHP’09 Challenge Winner-JuozasKaziukėnas<br />
    32. 32.
    33. 33. Palaikykimeryšį:<br />tdagys@microsoft.com<br />Twitter: tdagys<br />http://blogs.msdn.com/tdagys<br />

    ×