I will.
Going back again to the end of the lecture in p p and in this video lecture we go ahead and look at
uh, HTML and PHP.
All right.
So we're going to look at uh HTML and PHP.
And then we go ahead and learn about how to use HTML in PHP.
All right.
So you can see that our when I actually printed out this we were able to print out Hello World.
And if we go ahead on the inspect element of view the page source, this guy had a view page source.
You can see that this is a HTML page.
And right in here we can see our PHP code printed out.
Hello world.
And there is nothing like PHP and we can be able to write some HTML code right inside this PHP.
And it can be used to execute that as a HTML file and not a PHP file.
So is that actually possible?
Yes, it is possible.
So how is that possible?
Let's go ahead and close this.
But before, go ahead.
To start this, I want to show you how this actually works for each time we, uh, run this on our server.
So this is our server, which we actually used.
And then remember that this server is always open until you finish everything you are doing.
So anytime you are running your program, your server must always be open for you to run PHP.
And you can see that it has some things like accept close, accept close, accept close.
So each time you run this code, it's going to generate some of these figures.
What actually happens is that PHP is actually, uh, being run and the server is actually working at
the same time.
Now I'm going to write some things here.
Then we're going to run the code, we're going to check our server and know if actually there's some
things working going on in the background.
So this does not actually concern us.
It's not our problem.
We don't actually need it.
We just want to make sure to know if our server is actually running very well.
Now, for us to be able to write PHP and very well, we're going to learn about H2O.
Just like I told you, you have to know a bit about HTML, right?
So we are not actually learning HTML as to start afresh.
We're going to write some HTML code right inside this PHP and it's going to execute that.
Then go ahead and check our page source and know if that actually prints out the HTML code.
Now we actually wrote Hello World.
And what if I go right inside this hello world and make that to give that a heading tag of H1.
And then let's go over here and call this uh h1.
Now if you go ahead and run this, let's go over here and refresh this.
You can see that this is Hello World.
And you can see that it actually enlarged this.
Now if I go ahead and check the pixels go ahead and view the page source.
You can see we have H1 right in here.
But previously it was actually Hello World.
And because this HTML tag is right in here PHP recognizes HTML tag.
That is very, very important.
Let's go ahead and put someone at once and go ahead and say a call and uh, go ahead and uh, create
a line right in here.
And uh, go ahead and press semicolon at the end because you must actually do that.
So go ahead and say echo again to print out anything.
So anytime you want to print out anything with HTML, uh, anytime.
Want to print out anything in PHP, you're going to use the word echo.
So let's go ahead and put the paragraph tag and check this paragraph tag.
So inside this paragraph tag I'm going to say welcome to PHP.
All right.
So go ahead and create a tag.
And we're going to run this code save this code and uh go back here and uh run this.
So now you can see I have Hello World and you can see the line which is h r which we created.
And welcome to PHP is right in here.
Now let's go ahead and inspect this element and check it out.
So we.
Okay.
This is actually uh view page source and not inspection of element.
I just want to see the back end and what is actually going on.
So I'm viewing the pitch source.
This guy.
Let's check it out.
So now you can see we have this red in here.
I want to drag this up so it can be used to show more.
It says demo the body right in here and you can see hello world.
The hash one is here.
And this is our line tag.
And this is our paragraph tag.
And we're going to PHP right inside there.
So you can see that it was able to give us what is inside hello world.
And it was able to give us.
Welcome to PHP.
And it was able to recognize the HTML tags.
So you can actually write HTML tags right inside your PHP code.
And the PHP will actually honor that.
And it will go ahead and, uh, you know, execute your programs while obeying the HTML tags.
All right.
So now I'm going to show you our command prompt.
This is our server run on the back end.
You can see that the more we are running this code, the more this is being actually, Um, do some
work on the back end.
Let's go back here.
And I'm going to run this code while keeping this right in here.
So I'm going to run this code.
So let's go ahead and check it out and see if actually anything works at the back end.
So go ahead and refresh this.
And for each time I refresh it you can see that it's being uh is accepted.
And it's go over to the file and gets whatever is there.
You can see the get command is here.
It gets whatever is in the file.
Go ahead and run this code again.
You can see it gets whatever it is in the file.
WW slash sites dot PHP.
And that is really very cool.
So when you are working uh, as a PHP developer, you actually know that your server is working and
back end and making sure that everything is going well.
All right.
So I went ahead and did the code for you go ahead and practice this and put it on your own, check it
out and try out the HTML or talks and make sure everything works fine.
And if you have any questions, use the question and answer section and I'm going to get back to you
as soon as possible.
Thank you.
And I'm going to see you in the next video lecture.