PHP on Windows server
About PHP history, usage
[ 3 ] Basics about PHP Open, free, object oriented (recently added namespaces), procedural, type free server side scripting programming language Part of C-family syntax Beginning in 1994 – PHP 1.0 (1995), PHP 2.0 (1997), PHP 3.0 (1998), PHP 4.0 (2000), PHP 5.0 (2004), PHP 5.3 (2009), PHP 6.0 (?)
[ 4 ] PHP in Windows Environment Easy installation URL Mod rewrite PHP Codeplex support Extensibility: –Cache extensions –Azure SDK
[ 5 ] (Quick & Dirty) || Complex Framework Should we use our own solutions or given ones? Fast installation from Microsoft gallery: –Wordpress, Drupal, Moodle, SugarCRM... Usage of MVC Frameworks: –Symfony, Zend Framework, CakePHP
[ 6 ] PHP on IIS CGI upgrade allows reusability of processes. Prednosti Easier configuration Faster than CGI More stable than PHP with ISAPI Can run non-thread-safe PHP editions One process per request. Advantages Easy configuration Stable execution Disadvantages Slow because of I/O ‘Overhead’ by process starting Loaded as an ‘extension’ in the process. Advantage Increased performance Disadvantage Application is not ‘Thread-Safe’
[ 7 ] FastCGI & IIS6FastCGI & IIS7 Available at Download Center Available on Windows 7, Server 2008 (R2), Vista SP1 Special download for Windows Server 2003 Integrated part of IIS7 Just switch CGI functionality on in IIS ISAPI extension Native IIS7 module Sources, forums and documentation are available on IIS.NET Configured in fcgiext.ini Configured in new XML based sysem for IIS7 configuration Supported by Microsoft Supports PHP and other FastCGI frameworks
[ 8 ] New Modulare Architecture (integrated pipeline) Managed Native Managed
PHP Installation Internet Information Services 7 Web Platform Installer
[ 10 ] php.iis.net
[ 11 ] Web Platform -> Framework and Runtimes
[ 12 ] Installation of newest PHP version
SQL Server Driver Installation and driver usage
[ 14 ] SQL Server Driver for PHP Goal: Ensure robustness, scalability and reliablity of SQL Server for PHP developers on Windows platform Built PHP API & not Microsoft API for PHP –Easy queries require very little code –One approach for solving the same problem –Existing data design patterns are used
MSSQL Demo
Wordpress Installation Web Platform Installer
[ 17 ] Intalling Wordpress...
[ 18 ] Required packages
[ 19 ] Setting MySQL root password
[ 20 ] Packet transfer
[ 21 ] IIS7 Settings
[ 22 ] IIS7 Settings
[ 23 ] Completing Installation...
Conclusion IDEs, resources
[ 25 ] Development Environments Zend Studio Visual Studio –Commercial addon VS.PHP Netbeans (6.7+) Eclipse –Free addon PDT –Aptana (JavaScript, PHP)
[ 26 ] Websitespark Microsoft offer for web development companies with up to 10 employees: –Visual Studio Professional (3 licences), Expression Studio 3 (1 license), Expression Web (2 licences), Windows Web Server 2008 R2 (4 processor licences), SQL Server Web Edition (4 processor licences) When canceled or after 3 years - 100$
[ 27 ] Websitespark Resources & MSTech /09/24/announcing-the-websitespark- program.aspxhttp://weblogs.asp.net/scottgu/archive/2009 /09/24/announcing-the-websitespark- program.aspx
[ 28 ] PHP Resources PHP development toolshttp://
Q & A PHP on IIS7
Thank you! Gaj Tanko, MSP W: E: M: