Stacey Mulcahy| Technical Evangelist Jamie Kosoy | Content Developer PHP on Azure Stacey Mulcahy| Technical Evangelist Jamie Kosoy | Content Developer
Meet Stacey Mulcahy |@bitchwhocodes Technical Evangelist for Microsoft Focused on web development, Open Source, IoT, Design and UX Channel 9 Contributor – channel9.com/niners/bitchwhocodes International speaker
Meet Jamie Kosoy| @jkosoy Founder / Tech Director of Arbitrary Mad Scientist Programmer Teacher. Parsons and University of San Francisco Life Achievements Has a web site on permanent display in MoMI in Queens, NY Built a life-sized Arduino powered R2D2 Taught the Food Network what a hoagie is
Course Topics An Introduction to PHP on Azure 01 | Getting Started 05 | Creating an API 02 | From Static to Dynamic 06 | Deploying to Azure 03 | Forms, Sessions & Cookies 07 | Supplement Your Knowledge 04 | PHP and MySQL
Setting Expectations Target Audience Front end developer Server side developer Some familiarity with server side technologies Suggested Prerequisites/Supporting Material Visual Studio 2013 Express for Web XAMMP, WAMP (http://www.wampserver.com/en/)
Join the MVA Community! Microsoft Virtual Academy Free online learning tailored for IT Pros and Developers Over 1M registered users Up-to-date, relevant training on variety of Microsoft products “Earn while you learn!” Get 50 MVA Points for this event! Visit http://aka.ms/MVA-Voucher Enter this code: PHPAzure (expires 1/12/2015)
Introduction to PHP
Introduction and Getting Started History of PHP PHP in the Wild Development Environment Getting information about configuration settings Hello World Scalar Data Types Compound Data Types Functions
About PHP Server side scripting language for web development General purpose language Originally stood for “Personal Home Pages” Later stands for “Hypertext PreProcessor” Dynamic and weakly typed
PHP In The Wild PHP is the 4th most popular language type for newly created repositories in Github Mod_php is the most popular Apache module Of websites where the server side language is known, it’s listed that 82% of them are PHP Popular for CMS including WordPress, Joomla, MediaWiki, and Drupal.
Development Environment LAMP web development environments can be downloaded Can use MAMP, XAMPP, WAMP (http://www.wampserver.com/en/) Can use IIS to support PHP (http://support.microsoft.com/kb/2819022)
Configure IIS for PHP
Configuration Settings PHP can be configured For example, some libraries like CURL need to be included in some server environments To view how your server is configured, use phpinfo()
Viewing Configuration Settings
Hello World in PHP
Scalar Data Types TYPE DESCRIPTION EXAMPLE Integer Whole Number -4, 512 Float Floating Point Number 3.14, -88.90 String Characters “Jamie” , “@___@” Boolean True or False true, false
Scalar Data Types
Compound Data Types TYPE DESCRIPTION Array Holds many values indexed by string or numbers Object Holds many properties, may contain methods
Compound Data Types
Functions