Scanning the Internet for External Cloud Exposures via SSL Certs
PHP on Windows
1.
2. PHP on Windows Maarten Balliauw – RealDolmenE-mail: maarten.balliauw@realdolmen.comBlog: http://blog.maartenballiauw.beTwitter: @maartenballiauw
3. Who am I? Maarten Balliauw Antwerp, Belgium www.realdolmen.com Focus on web ASP.NET, ASP.NET MVC, PHP, Azure, VSTS, … MVP ASP.NET Interested in interoperability PHPExcel, PHPLinq, Windows Azure SDK for PHP, ... http://blog.maartenballiauw.be http://twitter.com/maartenballiauw
4. Agenda Why PHP matters… An overview of initiatives PHP core development FastCGI WinCache extension SQL Server driver for PHP Microsoft Web Platform Installer SDK’s Tooling SEO Optimization Tool Resources Q&A
5. Why PHP matters… Web applications Wordpress Drupal Joomla phpBB MediaWiki SugarCRM Gallery2 Commercial entities Yahoo! Flickr Digg Facebook YouTube Wikipedia Hard to ignore!
6. PHP on Windows If PHP matters, better make it a first-class citizen…
9. PHP 5.3 on Windows Is the most significant update to PHP on Windows! All libraries updated to latest versions(in some cases newer versions that used on Linux) Re-write of the build system from scratch Top PHP Windows community programmer working for Microsoft (Pierre Joye) Build with VS 2008 Available in 32 and 64 bit version Created windows.php.net 99% of all POSIX calls changed to native Windows calls
10. By the numbers: Running PHPBench looped 5x Both computers are a HP 8 core (2 procs x Quad core) 16gb ram. Linux (Centos 5.2) vs. Windows Server 2008 x86 NOTE: phpbench onlytests internal PHP engineperformance. It doesnot do IO of any kind.
12. PHP on Windows – History IIS support has been there for a long time Apache runs on Windows as well But… IIS gives best performance on Windows Unfortunately the choice was always between stability and performance…
17. IIS execution pipeline Since your PHP app is part of the IIS execution pipeline… …you can use IIS URL rewriting …you can use IIS as a load balancer (ARR) www.viprive.com …you can use any HttpModule out there ASP.NET membership / authentication Output caching …
19. Windows Cache Extension (“WinCache”) PHP module for 5.2 and 5.3 IIS specific PHP accelerator So only works in IIS! No code modifications needed in your application Cache layers: Bytecode cache – Caches compiled PHP scripts Script cache – Cache script sources in memory to reduce I/O access and UNC file share access Relative file path cache – Caches relative file path Session cache – Sessions stored in shared memory PHP functions to obtain information about the cache status http://www.iis.net/download/WinCacheForPhp
22. SQL Server Driver for PHP v1.1 PHP extension for Windows So only works on Windows! Reliable, scalable and fast integration with SQL Server for PHP Relies on the Microsoft SQL Server Native Client to communicate with SQL Server. http://bit.ly/cwDLR1
24. No, there is no PDO support. Oh, wait! Unless you want the new CTP bits! SQL Server Driver for PHP v2.0 CTP Support for PHP Data Objects (PDO) Better UTF-8 support Example: Drupal 7 on SQL Serverhttp://www.commerceguys.com/about/news/drupal-7-sql-server-preview http://bit.ly/cjGvO3
28. Easy installation of YOUR environment Easy installer providing Platform installation (IIS, extra modules, configuration, …) Both ASP.NET and PHP Application installation Both ASP.NET and PHP http://microsoft.com/web
31. Microsoft and PHP = LOTS of goodies Some highlights… SQL Server Reporting Services SDK for PHP OData SDK for PHP Windows Azure Tools for Eclipse Windows Azure SDK for PHP AppFabric SDK for PHP Windows Azure Command-Line Tools for PHP Eclipse Tools for Silverlight Information Cards for PHP Internet Explorer Webslices and Accelerators for PHP PHP and Silverlight SQL CRUD Application Wizard for PHP Toolkit for PHP and Bing Maps Overview: http://www.interoperabilitybridges.com/
32. SQL Server Reporting Services SDK for PHP SSRS? Reporting tool in SQL Server Very powerful! Various output formats Can be linked to MySQL, PostgreSQL, … API to interoperate with SQL Server Reporting Services List available reports within a PHP applications, Provide custom parameters from a PHP web form, Manage the rendering of the reports within a PHP application http://ssrsphp.codeplex.com
33. OData SDK for PHP OData? Open Data Protocol Unlock your data and free it from silos that exist in applications today Builds on HTTP, AtomPub and JSON RESTful interface Way data is delivered in MS CN “Dallas” API to OData Generate proxy classes to OData feeds CRUD on OData feeds http://odataphp.codeplex.com/
34. OData SDK for PHP /* connect to the OData service */ $svc = new NorthwindEntities(NORTHWIND_SERVICE_URL); /* get the list of Customers in the USA +the list of Orders */ $query = $svc->Customers() ->filter("Country eq 'USA'") ->Expand('Orders'); $customerResponse = $query->Execute(); /* get only CustomerID and CustomerName */ $query = $svc->Customers() ->filter("Country eq 'USA'") ->Select('CustomerID, CustomerName'); $customerResponse = $query->Execute(); /* create a new customer */ $customer = Customers::CreateCustomers('channel9', 'CHAN9'); $proxy->AddToCustomers($customer); /* commit the change on the server */ $proxy->SaveChanges();
35. Windows Azure Microsoft’s Cloud Computing offering Web/worker role (= virtual machine) Blobs, tables, queues, drives (= storage) SQL Azure (= +/- SQL Server) AppFabric (= access control & firewall punching) “Dallas” (= Data-as-a-Service) Working with PHP Windows Azure Tools for Eclipse Windows Azure SDK for PHP AppFabric SDK for PHP Windows Azure Command-Line Tools for PHP Zend Framework contribution
41. What’s in the cloud? Resources Where can I learn more?
42. Resources Microsoft Windows Azure Interop http://www.microsoft.com/windowsazure/interop/ InteropBridges http://www.interoperabilitybridges.com/
43. Summary PHP on Windows is a priority for Microsoft Full range of PHP support Products and Services Attract more customers to the MS platform through world-class support and resources Microsoft wants you to succeed