In this lesson we will create a basic BHP file that outputs some text into our web browser.
The first thing we need to do is confirm our web or man server is configured correctly to do so simply
open your web browser in type local hosted in the address bar you should then see this page displayed.
This is the default web page.
It provides some important information about the server configuration including the Apache and HP version.
It also lists some tools that are included in your package.
We'll be using these tools in the next section when we work with my sequel database the page also lists
the websites contained in your web root or WW w folder.
Here we can see the folder we created in the last lesson.
P HP lessons.
Remember that this is where all our files will be saved for this section.
Of course
to make sure your scripts are working correctly.
Open notepad plus plus and type in the code displayed on the screen.
We'll discuss the actual code in the next lesson this file will just output the text hello world in
our web browser using the P HP.
Echo command when you're finished typing in the code save the file in your HP lessons folder as intro
dot BHP you can actually give it any file name but the DOT P HP extension is very important.
P HP files will not work unless the DOT HP extension is included.
You'll notice we've embedded the p HP code in HD UML but even so we still need to specify the p HP extension.
We cannot see if it is an HMO file
type in the following tier web address local host slash P HP lessons slash intro dot HP and press enter.
You should now see the text hello world displayed in your web browser.