PHP powers more dynamic Web content that any other platform, and Nginx is the fastest growing HTTP server on the Internet. In this course, you'll start from the ground up learning how to host static HTML and dynamic PHP sites in Nginx, and how to build websites in PHP that interact with the user, and integrate with cloud services like Windows Azure and Amazon AWS. The course takes a hands-on approach, migrating an ASP.NET MVC website to PHP, and you'll see performance and cost comparisons for the two stacks.
PHP Part 1: Basic Web Forms Hi, my name's Elton, and welcome to PHP Part 1: Basic Web Forms, the next module in Nginx and PHP Fundamentals. In this module, we'll start with some background on PHP, looking at how it developed and grew, and what makes it such a popular technology, then we'll straight to work, setting up the PHP processor on our development environment, and creating the mandatory "Hello, World" demo. We'll extend that demo to look at the language syntax and some of the features of PHP. Next, we'll add a simple web form to our "Hello, World" sample, to show how PHP integrates with HTML, and how we can work with user input in our server-side PHP scripts. By that point, we'll know enough about PHP to get started with the real solution, migrating our registration page from ASP. NET MVC to PHP. We'll start by building the page in PHP, spreading the HTML between different scripts so it can be reused, and producing the same look and feel in PHP as we have with the existing website. Lastly, we'll add logic to our PHP script, to handle the user posting by their response, including server-side validation. If the input is valid, we'll return a thank-you page, and, if not, we'll return the registration page with the user's input preserved, and with error messages showing what's wrong. Along the way, we'll look at object-oriented programming in PHP, and by the end of the module, we'll have a functioning registration page that looks correct, validates user input, and is ready to be wired up to the third-party components in the next module.
Hosting PHP in Nginx Hi. My name's Elton, and welcome to Hosting PHP in Nginx, the next module in Nginx and PHP Fundamentals. In this module, we're going to set up Nginx to run our PHP website. We'll start with a closer look at how web servers interact with the PHP Runtime, and we'll walk through a fresh install of PHP on the Windows' environment. Then we'll set up our PHP version of the site under IIS and get it running to use as a baseline for configuring the site to run under Nginx. When the Nginx version of a site is running, we'll customize it to add some nice features, like rewriting URL's to get rid of the. PHP extension, and we'll lock down the server, so it only sends back the content we want to make available. At that point, we'll have three versions of the website: ASP. NET MVC. running in IIS, PHP running in IIS, and PHP running in Nginx. We'll put together another set of JMeter tests to execute a get call against the registration page, and we'll run those tests against all the versions, to get our final performance comparison.