Writing our first lines of PHP!
Initialize (init) our LAMP stack:
Initializing will create our .lando.yml configuration file that will allow us to control many aspects of our development environment. It should look similar to this:
name: inro-to-php recipe: lamp config: webroot: .
Now that we have our config in place we can start our app.
Now that we have our app up and running create an index.php file with the following contents:
<?php print 'Hello World!'; ?>
If you want to see a bunch of information about your PHP set up and and the server environment let's use the PHP function phpinfo():
<?php phpinfo(); ?>
Don't worry too much about all that information. I know it can be overwhelming to look at it! For now just know that there is some useful information there should we need to reference it someday.