Difference between revisions of "PHP-and-MySQL/C2/Echo-Function/English-timed"
From Script | Spoken-Tutorial
(Created page with '{|Border=1 !Time !Narration |- |0:01 |Hi and welcome to a basic PHP tutorial. |- |0:05 |I'll just go through how to use the "echo" function and how to set up your tags . |- |0:…') |
|||
Line 1: | Line 1: | ||
{|Border=1 | {|Border=1 | ||
− | + | |'''Time''' | |
− | + | |'''Narration''' | |
|- | |- | ||
− | | | + | |00:01 |
|Hi and welcome to a basic PHP tutorial. | |Hi and welcome to a basic PHP tutorial. | ||
|- | |- | ||
− | | | + | |00:05 |
|I'll just go through how to use the "echo" function and how to set up your tags . | |I'll just go through how to use the "echo" function and how to set up your tags . | ||
|- | |- | ||
− | | | + | |00:10 |
|Those of you that are familiar with "html" will know that there are html tags to start your page and to end your page. | |Those of you that are familiar with "html" will know that there are html tags to start your page and to end your page. | ||
|- | |- | ||
− | | | + | |00:18 |
|They're not vital in an html page. As long as you've got an html extension, you're fine. | |They're not vital in an html page. As long as you've got an html extension, you're fine. | ||
|- | |- | ||
− | | | + | |00:25 |
|However, in PHP, you need the tags. This starts and this ends. | |However, in PHP, you need the tags. This starts and this ends. | ||
|- | |- | ||
− | | | + | |00:30 |
|That's basically the standard notation for it. | |That's basically the standard notation for it. | ||
|- | |- | ||
− | | | + | |00:34 |
|However, our content goes in between here. | |However, our content goes in between here. | ||
|- | |- | ||
− | | | + | |00:39 |
|Now, I've already saved my file as "helloworld.php". | |Now, I've already saved my file as "helloworld.php". | ||
|- | |- | ||
− | | | + | |00:43 |
|So, let's save that and have a look in here. | |So, let's save that and have a look in here. | ||
|- | |- | ||
− | | | + | |00:47 |
|Okay, there's nothing in the page at the moment but we've got our page set up. It's absolutely fine. | |Okay, there's nothing in the page at the moment but we've got our page set up. It's absolutely fine. | ||
|- | |- | ||
− | | | + | |00:54 |
|The "echo" function works like this: we've got echo, we've got some double quotes and we've got a line terminator which is the semicolon mark. | |The "echo" function works like this: we've got echo, we've got some double quotes and we've got a line terminator which is the semicolon mark. | ||
|- | |- | ||
− | | | + | |01:03 |
|And our text goes in between here. Let's save that and we'll refresh. And there we go. | |And our text goes in between here. Let's save that and we'll refresh. And there we go. | ||
|- | |- | ||
− | | | + | |01:09 |
|Right, you can – and I find this very useful – write your "echo" function like this. | |Right, you can – and I find this very useful – write your "echo" function like this. | ||
|- | |- | ||
− | | | + | |01:16 |
|Because when you put an html code inside your echo function these bits here don't represent line breaks. (and just to let you know, if you haven't learnt html yet I suggest you pick it up, at least the basics, because we're going to be using it quite a lot) | |Because when you put an html code inside your echo function these bits here don't represent line breaks. (and just to let you know, if you haven't learnt html yet I suggest you pick it up, at least the basics, because we're going to be using it quite a lot) | ||
|- | |- | ||
− | | | + | |01:34 |
|For that you need to add your own html in. So '<br>' for line break and then 'New line'. | |For that you need to add your own html in. So '<br>' for line break and then 'New line'. | ||
|- | |- | ||
− | | | + | |01:43 |
|We'll refresh this and there you go! Our html has been incorporated. | |We'll refresh this and there you go! Our html has been incorporated. | ||
|- | |- | ||
− | | | + | |01:48 |
|Okay, just to let you know, this is one thing that a lot of people run into: 'image source equals' and your file goes there. | |Okay, just to let you know, this is one thing that a lot of people run into: 'image source equals' and your file goes there. | ||
|- | |- | ||
− | | | + | |01:57 |
|However, at the moment we've got 'echo'. | |However, at the moment we've got 'echo'. | ||
|- | |- | ||
− | | | + | |02:01 |
|This shows that we're going to start our output and this here will show that we're ending our output. | |This shows that we're going to start our output and this here will show that we're ending our output. | ||
|- | |- | ||
− | | | + | |02:07 |
|We don't end it here; we're going to end it here. | |We don't end it here; we're going to end it here. | ||
|- | |- | ||
− | | | + | |02:11 |
|So instead of these, we'll need inverted commas. | |So instead of these, we'll need inverted commas. | ||
|- | |- | ||
− | | | + | |02:14 |
|Basically, that will let us show our image there. | |Basically, that will let us show our image there. | ||
|- | |- | ||
− | | | + | |02:18 |
|There's no file specified, but you get the picture. | |There's no file specified, but you get the picture. | ||
|- | |- | ||
− | | | + | |02:21 |
|So, let me just show you what would happen if we keep these in and then with that I'll end the tutorial. | |So, let me just show you what would happen if we keep these in and then with that I'll end the tutorial. | ||
|- | |- | ||
− | | | + | |02:28 |
|Right, we've got 'Parse error'. | |Right, we've got 'Parse error'. | ||
|- | |- | ||
− | | | + | |02:31 |
|We either need a comma or a semicolon to end, which proves that as we're coming up to here, we need a semicolon after this. | |We either need a comma or a semicolon to end, which proves that as we're coming up to here, we need a semicolon after this. | ||
|- | |- | ||
− | | | + | |02:40 |
|But in actual fact, that's not true. | |But in actual fact, that's not true. | ||
|- | |- | ||
− | | | + | |02:42 |
|So, just keep them as inverted commas. | |So, just keep them as inverted commas. | ||
|- | |- | ||
− | | | + | |02:45 |
|Okay, that's the basics of the echo function and the PHP tags. Hope you enjoyed learning them. | |Okay, that's the basics of the echo function and the PHP tags. Hope you enjoyed learning them. | ||
|- | |- | ||
− | | | + | |02:52 |
|Thanks for watching! This script has been translated by ---------------------------(translator's name) and this is -----------------------------------(narrator's name) signing off. | |Thanks for watching! This script has been translated by ---------------------------(translator's name) and this is -----------------------------------(narrator's name) signing off. |
Revision as of 10:57, 10 July 2014
Time | Narration |
00:01 | Hi and welcome to a basic PHP tutorial. |
00:05 | I'll just go through how to use the "echo" function and how to set up your tags . |
00:10 | Those of you that are familiar with "html" will know that there are html tags to start your page and to end your page. |
00:18 | They're not vital in an html page. As long as you've got an html extension, you're fine. |
00:25 | However, in PHP, you need the tags. This starts and this ends. |
00:30 | That's basically the standard notation for it. |
00:34 | However, our content goes in between here. |
00:39 | Now, I've already saved my file as "helloworld.php". |
00:43 | So, let's save that and have a look in here. |
00:47 | Okay, there's nothing in the page at the moment but we've got our page set up. It's absolutely fine. |
00:54 | The "echo" function works like this: we've got echo, we've got some double quotes and we've got a line terminator which is the semicolon mark. |
01:03 | And our text goes in between here. Let's save that and we'll refresh. And there we go. |
01:09 | Right, you can – and I find this very useful – write your "echo" function like this. |
01:16 | Because when you put an html code inside your echo function these bits here don't represent line breaks. (and just to let you know, if you haven't learnt html yet I suggest you pick it up, at least the basics, because we're going to be using it quite a lot) |
01:34 | For that you need to add your own html in. So ' ' for line break and then 'New line'. |
01:43 | We'll refresh this and there you go! Our html has been incorporated. |
01:48 | Okay, just to let you know, this is one thing that a lot of people run into: 'image source equals' and your file goes there. |
01:57 | However, at the moment we've got 'echo'. |
02:01 | This shows that we're going to start our output and this here will show that we're ending our output. |
02:07 | We don't end it here; we're going to end it here. |
02:11 | So instead of these, we'll need inverted commas. |
02:14 | Basically, that will let us show our image there. |
02:18 | There's no file specified, but you get the picture. |
02:21 | So, let me just show you what would happen if we keep these in and then with that I'll end the tutorial. |
02:28 | Right, we've got 'Parse error'. |
02:31 | We either need a comma or a semicolon to end, which proves that as we're coming up to here, we need a semicolon after this. |
02:40 | But in actual fact, that's not true. |
02:42 | So, just keep them as inverted commas. |
02:45 | Okay, that's the basics of the echo function and the PHP tags. Hope you enjoyed learning them. |
02:52 | Thanks for watching! This script has been translated by ---------------------------(translator's name) and this is -----------------------------------(narrator's name) signing off. |