title
PHP Programming Part 2: PHP Syntax and Errors

description

detail
{'title': 'PHP Programming Part 2: PHP Syntax and Errors', 'heatmap': [{'end': 1061.351, 'start': 1039.554, 'weight': 1}, {'end': 2072.572, 'start': 2044.478, 'weight': 0.75}], 'summary': 'Covers php basics, including syntax, printing, text formatting, error handling, and troubleshooting, emphasizing the importance of proper code writing, error identification, and using notepad++ for scripting and error troubleshooting.', 'chapters': [{'end': 552.318, 'segs': [{'end': 79.629, 'src': 'embed', 'start': 55.37, 'weight': 0, 'content': [{'end': 68.34, 'text': "we're going to go over the basic syntax of how you create a PHP script and specific little things that you need to make sure that you do in order to make sure that the PHP script works.", 'start': 55.37, 'duration': 12.97}, {'end': 76.106, 'text': "Whether you're writing a script that is one line of code or 50 lines of code or 5, 000 lines of code,", 'start': 68.7, 'duration': 7.406}, {'end': 79.629, 'text': "what we're going to talk about today will stay true through all of that.", 'start': 76.106, 'duration': 3.523}], 'summary': 'Learn basic php script syntax and tips for script success.', 'duration': 24.259, 'max_score': 55.37, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg55370.jpg'}, {'end': 260.279, 'src': 'embed', 'start': 231.195, 'weight': 1, 'content': [{'end': 236.157, 'text': "It's very important for you guys who know a little bit of Linux, a little more advanced.", 'start': 231.195, 'duration': 4.962}, {'end': 237.418, 'text': 'in the IT world.', 'start': 236.157, 'duration': 1.261}, {'end': 244.461, 'text': 'you cannot simply call PHP scripts through something called cron jobs, or just be able to run them at the command line.', 'start': 237.418, 'duration': 7.043}, {'end': 248.983, 'text': 'They always have to be run through the web browser through HTTP.', 'start': 244.701, 'duration': 4.282}, {'end': 250.804, 'text': 'So you either go to them.', 'start': 249.243, 'duration': 1.561}, {'end': 260.279, 'text': "like I say, you will open up a web browser and you'll actually go to the script, or you'll have a full PHP script.", 'start': 250.804, 'duration': 9.475}], 'summary': 'Php scripts in it must be run through the web browser, not via cron jobs or command line.', 'duration': 29.084, 'max_score': 231.195, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg231195.jpg'}, {'end': 423.431, 'src': 'embed', 'start': 385.841, 'weight': 2, 'content': [{'end': 390.705, 'text': 'Well remember, in Linux capitalization matters.', 'start': 385.841, 'duration': 4.864}, {'end': 396.87, 'text': "So remember if you're calling a script or if you're trying to connect to a script or file.", 'start': 391.826, 'duration': 5.044}, {'end': 407.407, 'text': 'in the Linux world, uppercase TEST is a different file than lowercase test.php.', 'start': 396.87, 'duration': 10.537}, {'end': 419.53, 'text': 'If you get sloppy, these files are different than uppercase T lowercase est.php, etc.', 'start': 410.027, 'duration': 9.503}, {'end': 423.431, 'text': 'So remember, in the Linux world, this is one of the big errors that comes up,', 'start': 419.83, 'duration': 3.601}], 'summary': 'In linux, capitalization matters when calling or connecting to files or scripts.', 'duration': 37.59, 'max_score': 385.841, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg385841.jpg'}], 'start': 5.37, 'title': 'Php syntax and errors', 'summary': 'Covers the basic syntax of creating a php script, including formatting and viewing text, calling php scripts from web browsers, and the significance of capitalization in linux when naming files and folders.', 'chapters': [{'end': 552.318, 'start': 5.37, 'title': 'Php syntax and errors', 'summary': 'Covers the basic syntax of creating a php script, including the importance of formatting and viewing text, calling php scripts from web browsers, and the significance of capitalization in linux when naming files and folders.', 'duration': 546.948, 'highlights': ['The importance of understanding basic syntax and formatting when creating a PHP script is emphasized, as it lays the foundation for more complex programming tasks, such as ensuring that the script works regardless of its length.', 'Calling PHP scripts from web browsers, such as Internet Explorer, Firefox, or Chrome, is explained as a fundamental process, and the significance of HTTP for calling PHP scripts is highlighted.', 'The significance of capitalization in Linux when naming files and folders is emphasized, as incorrect capitalization can lead to errors and problems in calling scripts, with specific examples provided to illustrate the potential issues.']}], 'duration': 546.948, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg5370.jpg', 'highlights': ['The importance of understanding basic syntax and formatting when creating a PHP script is emphasized, as it lays the foundation for more complex programming tasks, such as ensuring that the script works regardless of its length.', 'Calling PHP scripts from web browsers, such as Internet Explorer, Firefox, or Chrome, is explained as a fundamental process, and the significance of HTTP for calling PHP scripts is highlighted.', 'The significance of capitalization in Linux when naming files and folders is emphasized, as incorrect capitalization can lead to errors and problems in calling scripts, with specific examples provided to illustrate the potential issues.']}, {'end': 816.684, 'segs': [{'end': 626.865, 'src': 'embed', 'start': 583.572, 'weight': 0, 'content': [{'end': 589.374, 'text': 'What it says is what follows is PHP programming and not something else.', 'start': 583.572, 'duration': 5.802}, {'end': 597.363, 'text': 'You will then close the PHP script by doing ?angle bracket.', 'start': 590.359, 'duration': 7.004}, {'end': 607.409, 'text': 'So what this tells to the web server is that everything between these two is a PHP program.', 'start': 598.023, 'duration': 9.386}, {'end': 616.574, 'text': 'Everything else on the rest of the page might be something else, but everything here is a PHP program and to treat it as such.', 'start': 608.329, 'duration': 8.245}, {'end': 626.865, 'text': 'then you tell the PHP interpreter what to do.', 'start': 623.063, 'duration': 3.802}], 'summary': 'The transcript discusses php programming and its syntax for defining php scripts.', 'duration': 43.293, 'max_score': 583.572, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg583572.jpg'}, {'end': 730.499, 'src': 'embed', 'start': 701.806, 'weight': 2, 'content': [{'end': 705.328, 'text': 'So print, again, everything between these two things.', 'start': 701.806, 'duration': 3.522}, {'end': 707.29, 'text': 'And then, finally,', 'start': 706.229, 'duration': 1.061}, {'end': 717.92, 'text': 'the basic thing that you have to understand with PHP programming is that the semicolon is the equivalent of a period in an English sentence.', 'start': 707.29, 'duration': 10.63}, {'end': 728.29, 'text': 'So whenever you tell the PHP script to do something, so I wanted to do this, you then end that with a semicolon.', 'start': 718.341, 'duration': 9.949}, {'end': 730.499, 'text': 'that says, I want you to do this.', 'start': 728.618, 'duration': 1.881}], 'summary': 'Php programming: use semicolon to end commands.', 'duration': 28.693, 'max_score': 701.806, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg701806.jpg'}, {'end': 779.739, 'src': 'embed', 'start': 748.905, 'weight': 3, 'content': [{'end': 754.946, 'text': 'So if you forget to put the semi colon, whole bunch of nastiness can happen.', 'start': 748.905, 'duration': 6.041}, {'end': 759.388, 'text': "These are the main things that you have to understand when you're doing PHP programming.", 'start': 755.446, 'duration': 3.942}, {'end': 763.15, 'text': 'They seem very, very, very, very, very, very, very simple.', 'start': 759.408, 'duration': 3.742}, {'end': 767.192, 'text': "But if you forget them, it's just horrible.", 'start': 763.991, 'duration': 3.201}, {'end': 768.213, 'text': "It's just evil.", 'start': 767.392, 'duration': 0.821}, {'end': 770.934, 'text': "I mean, it's just nasty.", 'start': 768.253, 'duration': 2.681}, {'end': 772.335, 'text': "Computers don't think.", 'start': 771.214, 'duration': 1.121}, {'end': 779.739, 'text': "If you don't give them the exact command, well, they're going to output the command you gave them.", 'start': 772.735, 'duration': 7.004}], 'summary': 'Forgetting semicolon in php can lead to issues; precise commands are crucial for computer output.', 'duration': 30.834, 'max_score': 748.905, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg748905.jpg'}], 'start': 552.318, 'title': 'Php scripting and printing basics', 'summary': 'Covers php scripting basics, including syntax and interpreter instructions, and emphasizes the use of angle brackets and question marks. it also explains php printing basics, highlighting the importance of quotation marks and semicolons to maintain code readability and functionality.', 'chapters': [{'end': 626.865, 'start': 552.318, 'title': 'Php scripting basics', 'summary': 'Discusses the basics of php scripting, including the syntax for indicating php code in a file and instructing the php interpreter, emphasizing the use of angle brackets and question marks to denote the beginning and end of php scripts.', 'duration': 74.547, 'highlights': ['You indicate the start of a PHP script with angle bracket question mark PHP, and close it with question mark angle bracket, instructing the web server to treat everything in between as PHP programming.', 'The PHP interpreter is then instructed on what to do within the PHP script.']}, {'end': 816.684, 'start': 626.945, 'title': 'Php printing basics', 'summary': 'Explains php printing basics, emphasizing the importance of using quotation marks and semicolons, and the consequences of not following these rules, in order to avoid errors and maintain code readability and functionality.', 'duration': 189.739, 'highlights': ['The chapter emphasizes the importance of using quotation marks and semicolons in PHP programming to avoid errors. Emphasizes the importance of using quotation marks and semicolons in PHP programming to avoid errors.', 'The consequences of not following the rules in PHP programming are explained, with an emphasis on maintaining code readability and functionality. Explains the consequences of not following the rules in PHP programming, emphasizing maintaining code readability and functionality.', 'The analogy of semicolons being equivalent to periods in English sentences is used to highlight the significance of ending commands properly in PHP programming. Uses the analogy of semicolons being equivalent to periods in English sentences to highlight the significance of ending commands properly in PHP programming.']}], 'duration': 264.366, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg552318.jpg', 'highlights': ['You indicate the start of a PHP script with angle bracket question mark PHP, and close it with question mark angle bracket, instructing the web server to treat everything in between as PHP programming.', 'The PHP interpreter is then instructed on what to do within the PHP script.', 'The chapter emphasizes the importance of using quotation marks and semicolons in PHP programming to avoid errors.', 'The consequences of not following the rules in PHP programming are explained, with an emphasis on maintaining code readability and functionality.', 'The analogy of semicolons being equivalent to periods in English sentences is used to highlight the significance of ending commands properly in PHP programming.']}, {'end': 1026.685, 'segs': [{'end': 899.601, 'src': 'embed', 'start': 845.449, 'weight': 0, 'content': [{'end': 848.449, 'text': 'Now with errors, a lot of people have already been asking me about errors.', 'start': 845.449, 'duration': 3}, {'end': 851.11, 'text': "We haven't even gotten into programming yet and people ask me about errors.", 'start': 848.49, 'duration': 2.62}, {'end': 862.752, 'text': 'Well, the nice thing with PHP programming is that the PHP server will provide you errors when you try to go to the web page and there is a problem.', 'start': 851.75, 'duration': 11.002}, {'end': 866.113, 'text': 'So everything here was done on different lines.', 'start': 863.871, 'duration': 2.242}, {'end': 872.478, 'text': "So let's say this is line 1, 2, 3, right? So this is a text document.", 'start': 866.153, 'duration': 6.325}, {'end': 877.402, 'text': 'This is why I like using Notepad++, because it numbers the lines on the left-hand side.', 'start': 872.498, 'duration': 4.904}, {'end': 888.813, 'text': 'So if you forgot to do something like put a semicolon or such in here, the php script tries to run,', 'start': 878.123, 'duration': 10.69}, {'end': 899.601, 'text': "it will run into that problem and then you'll get printed out on your web browser some kind of error in this file at line two,", 'start': 888.813, 'duration': 10.788}], 'summary': 'Php server provides errors when encountering issues, such as missing semicolons, with line numbers for easy debugging.', 'duration': 54.152, 'max_score': 845.449, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg845449.jpg'}, {'end': 985.969, 'src': 'embed', 'start': 955.4, 'weight': 3, 'content': [{'end': 959.183, 'text': "this is cool quotation, mark semicolon, and that's how it's supposed to be written.", 'start': 955.4, 'duration': 3.783}, {'end': 961.304, 'text': 'Well, you may run into problems.', 'start': 959.883, 'duration': 1.421}, {'end': 968.77, 'text': 'So if you forget to put the end, the closing quotation mark, here, when the PHP script runs,', 'start': 961.344, 'duration': 7.426}, {'end': 977.203, 'text': 'PHP is going to keep looking until it finds what it thinks is the closing quotation mark.', 'start': 968.77, 'duration': 8.433}, {'end': 985.969, 'text': "So now instead of saying, printing, hello world, it's going to print, print, hello world, semicolon, print, and that's where it's going to stop.", 'start': 977.704, 'duration': 8.265}], 'summary': 'Missing closing quotation mark in php script can cause incorrect output', 'duration': 30.569, 'max_score': 955.4, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg955400.jpg'}, {'end': 1026.685, 'src': 'embed', 'start': 999.524, 'weight': 4, 'content': [{'end': 1004.131, 'text': 'this is the closing quotation mark and all this gobbledygook is an error to it.', 'start': 999.524, 'duration': 4.607}, {'end': 1006.154, 'text': 'So this is where you can have.', 'start': 1004.551, 'duration': 1.603}, {'end': 1014.263, 'text': "some quirks with the error that you get is sometimes it's not specifically where you think it is going to be.", 'start': 1006.721, 'duration': 7.542}, {'end': 1024.605, 'text': 'So your error is actually here on line two, but because of how PHP read your script, it thinks your error is on line three.', 'start': 1014.743, 'duration': 9.862}, {'end': 1026.685, 'text': 'So just keep this in mind.', 'start': 1025.085, 'duration': 1.6}], 'summary': 'Errors in php scripts can be misinterpreted, leading to unexpected error locations and complexities.', 'duration': 27.161, 'max_score': 999.524, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg999524.jpg'}], 'start': 817.324, 'title': 'Php scripting basics, closing quotation marks, and error quirks', 'summary': 'Covers php basics, including handling errors, closing quotation marks, and understanding error messages. it emphasizes the impact of these issues on script execution and the importance of proper error troubleshooting.', 'chapters': [{'end': 924.819, 'start': 817.324, 'title': 'Php scripting basics', 'summary': 'Explains the basics of running a php script on a web server, including how errors are handled and identified by the server, and the process of troubleshooting errors in the script.', 'duration': 107.495, 'highlights': ['The PHP server provides errors when there is a problem, allowing users to identify and troubleshoot errors in the script.', 'Errors in the PHP script are indicated with specific line numbers, enabling users to easily locate and fix the issues.', 'Notepad++ is recommended for its feature of numbering lines, facilitating the identification of errors in the PHP script.']}, {'end': 977.203, 'start': 925.019, 'title': 'Closing quotation marks in php', 'summary': 'Discusses the importance of properly closing quotation marks in php scripts, highlighting the potential problems that arise if quotation marks are not closed, leading to errors in script execution.', 'duration': 52.184, 'highlights': ['The importance of properly closing quotation marks in PHP scripts to avoid potential problems in script execution.', 'Demonstrates the issue of forgetting to close the closing quotation mark, leading to PHP script errors.', 'Explains how PHP will keep looking until it finds what it thinks is the closing quotation mark, causing potential issues in script execution.']}, {'end': 1026.685, 'start': 977.704, 'title': 'Php error quirks', 'summary': "Explains how php error messages may not always pinpoint the exact location of the error, with an example of a closing quotation mark leading to an error on the following line and the importance of considering php's interpretation of the script.", 'duration': 48.981, 'highlights': ['The error message may not always accurately pinpoint the location of the error, as demonstrated by a closing quotation mark causing an error on the following line.', 'Understanding how PHP interprets the script is crucial, as it can lead to the error being reported on a different line than expected.']}], 'duration': 209.361, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg817324.jpg', 'highlights': ['The PHP server provides errors when there is a problem, allowing users to identify and troubleshoot errors in the script.', 'Errors in the PHP script are indicated with specific line numbers, enabling users to easily locate and fix the issues.', 'Notepad++ is recommended for its feature of numbering lines, facilitating the identification of errors in the PHP script.', 'The importance of properly closing quotation marks in PHP scripts to avoid potential problems in script execution.', 'Demonstrates the issue of forgetting to close the closing quotation mark, leading to PHP script errors.', 'The error message may not always accurately pinpoint the location of the error, as demonstrated by a closing quotation mark causing an error on the following line.']}, {'end': 1616.991, 'segs': [{'end': 1066.655, 'src': 'heatmap', 'start': 1039.554, 'weight': 1, 'content': [{'end': 1047.02, 'text': 'So we need to take a minute to talk about text formatting, because this can really really throw new PHP programmers for a loop.', 'start': 1039.554, 'duration': 7.466}, {'end': 1053.885, 'text': 'because, remember, PHP is going to be writing out text information, so whenever you give it a command,', 'start': 1047.02, 'duration': 6.865}, {'end': 1061.351, 'text': 'such as print hello world or tell it to print something to the web browser, it is going to print that out in standard text.', 'start': 1053.885, 'duration': 7.466}, {'end': 1066.655, 'text': 'The issue is is that the web browser reads HTML.', 'start': 1061.892, 'duration': 4.763}], 'summary': 'New php programmers struggle with text formatting as php writes text in standard format while web browsers read html.', 'duration': 27.101, 'max_score': 1039.554, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1039554.jpg'}, {'end': 1115.74, 'src': 'embed', 'start': 1081.863, 'weight': 1, 'content': [{'end': 1085.044, 'text': "so not gonna go into command, I'll show it to you in the demonstration.", 'start': 1081.863, 'duration': 3.181}, {'end': 1091.548, 'text': 'but essentially what happens is you can divide a sentence onto two different lines.', 'start': 1085.044, 'duration': 6.504}, {'end': 1097.216, 'text': "so before we were talking about, let's say, hello world, this is what we want to say.", 'start': 1091.548, 'duration': 5.668}, {'end': 1101.036, 'text': 'this is what we want to have printed out on on the web page.', 'start': 1097.216, 'duration': 3.82}, {'end': 1107.118, 'text': 'when we go to test.php with firefox, we want to see hello world.', 'start': 1101.036, 'duration': 6.082}, {'end': 1115.74, 'text': "well, let's say, we're just trying to be goofy and we what we want is we want hello on the first line and world on the second line.", 'start': 1107.118, 'duration': 8.622}], 'summary': 'Demonstration of dividing a sentence onto two lines.', 'duration': 33.877, 'max_score': 1081.863, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1081863.jpg'}, {'end': 1260.32, 'src': 'embed', 'start': 1217.101, 'weight': 0, 'content': [{'end': 1222.243, 'text': 'Remember that the web browsers are going to read HTML formatting.', 'start': 1217.101, 'duration': 5.142}, {'end': 1231.086, 'text': 'So once we get more into this PHP tract, I will show you how to write HTML on the fly with PHP.', 'start': 1222.263, 'duration': 8.823}, {'end': 1236.048, 'text': "But just realize now what we're doing, PHP is printing out text.", 'start': 1231.406, 'duration': 4.642}, {'end': 1238.729, 'text': 'Your web browser is reading HTML.', 'start': 1236.968, 'duration': 1.761}, {'end': 1260.32, 'text': "With a text editor, this is what you So this is a theory on what we're doing.", 'start': 1241.432, 'duration': 18.888}], 'summary': 'Php can create html on the fly, enabling dynamic web content.', 'duration': 43.219, 'max_score': 1217.101, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1217101.jpg'}, {'end': 1311.271, 'src': 'embed', 'start': 1280.894, 'weight': 5, 'content': [{'end': 1283.136, 'text': 'I think it will make a lot more sense to you.', 'start': 1280.894, 'duration': 2.242}, {'end': 1292.024, 'text': 'So here we are back on my Windows 7 computer, and I have Notepad++ open.', 'start': 1287.202, 'duration': 4.822}, {'end': 1302.388, 'text': "Again, especially when you're doing simple PHP programming, really any simple programming, I think Notepad++ is the greatest thing in the world.", 'start': 1292.544, 'duration': 9.844}, {'end': 1307.85, 'text': 'You have a lot of little nice features such as the FTP client.', 'start': 1303.148, 'duration': 4.702}, {'end': 1309.77, 'text': "It's completely free.", 'start': 1308.63, 'duration': 1.14}, {'end': 1310.631, 'text': 'You can download it.', 'start': 1309.87, 'duration': 0.761}, {'end': 1311.271, 'text': 'You can use it.', 'start': 1310.671, 'duration': 0.6}], 'summary': 'Notepad++ on windows 7 offers useful features, like an ftp client, and is free to use.', 'duration': 30.377, 'max_score': 1280.894, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1280894.jpg'}, {'end': 1467.092, 'src': 'embed', 'start': 1435.905, 'weight': 3, 'content': [{'end': 1440.947, 'text': 'That tells the PHP interpreter, this single command has finished.', 'start': 1435.905, 'duration': 5.042}, {'end': 1443.548, 'text': 'Now run the next command.', 'start': 1441.867, 'duration': 1.681}, {'end': 1444.869, 'text': 'So this is very important.', 'start': 1443.708, 'duration': 1.161}, {'end': 1449.326, 'text': 'All we, this is what a PHP script looks like.', 'start': 1446.525, 'duration': 2.801}, {'end': 1455.548, 'text': 'So we have PHP, we have print, hello world, semi-colon, then we close a PHP script.', 'start': 1449.746, 'duration': 5.802}, {'end': 1457.289, 'text': 'This is a full PHP script.', 'start': 1455.648, 'duration': 1.641}, {'end': 1459.21, 'text': 'So I can hit save.', 'start': 1458.029, 'duration': 1.181}, {'end': 1467.092, 'text': 'As I say, why I like Notepad++ is I can then just go over here and I can upload the file directly in Notepad++.', 'start': 1460.53, 'duration': 6.562}], 'summary': "Php script demonstration with print 'hello world' and uploading file directly in notepad++", 'duration': 31.187, 'max_score': 1435.905, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1435905.jpg'}, {'end': 1560.749, 'src': 'embed', 'start': 1531.215, 'weight': 4, 'content': [{'end': 1535.856, 'text': 'So if we look back at Notepad++, we open the PHP.', 'start': 1531.215, 'duration': 4.641}, {'end': 1539.677, 'text': 'We tell PHP the program we want to run.', 'start': 1536.956, 'duration': 2.721}, {'end': 1542.477, 'text': 'So print hello world semicolon.', 'start': 1539.797, 'duration': 2.68}, {'end': 1545.758, 'text': 'Then we do question mark angle bracket closes PHP.', 'start': 1542.997, 'duration': 2.761}, {'end': 1549.999, 'text': 'We upload that to the server that has PHP installed on it.', 'start': 1546.158, 'duration': 3.841}, {'end': 1554.92, 'text': 'And now we get this fancy little application that says hello world.', 'start': 1550.259, 'duration': 4.661}, {'end': 1558.487, 'text': 'I want to show you what happens if you make a mistake.', 'start': 1555.925, 'duration': 2.562}, {'end': 1560.749, 'text': 'Again, I will try to hammer this home.', 'start': 1558.667, 'duration': 2.082}], 'summary': 'Using notepad++ to run php, uploading to server with php installed, demonstrating error handling.', 'duration': 29.534, 'max_score': 1531.215, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1531215.jpg'}], 'start': 1027.066, 'title': 'Php text formatting', 'summary': "Explains the importance of text formatting in php, including the effects of the next line command and the distinction between text and html formatting for web browsers. additionally, it introduces php programming, covering the use of notepad++, creating and running basic scripts, and emphasizing precision in programming with a focus on the 'hello world' program.", 'chapters': [{'end': 1280.794, 'start': 1027.066, 'title': 'Text formatting in php', 'summary': 'Explains the importance of text formatting in php and how the use of next line command affects the output, emphasizing the difference between text and html formatting for web browsers.', 'duration': 253.728, 'highlights': ['The chapter emphasizes the importance of understanding text formatting in PHP and its impact on web browser output. importance of text formatting, impact on web browser output', 'The explanation of the next line command in PHP and its effect on dividing sentences onto two different lines. next line command, effect on dividing sentences', 'The chapter highlights the difference between how PHP prints text and how web browsers interpret HTML formatting. difference between PHP text output and HTML interpretation']}, {'end': 1616.991, 'start': 1280.894, 'title': 'Introduction to php programming', 'summary': "Provides an introduction to php programming, highlighting the use of notepad++ for simple php programming, the process of creating and running a basic php script, and the precision required in programming, with an emphasis on 'hello world' program.", 'duration': 336.097, 'highlights': ['Notepad++ is recommended for simple PHP programming, offering features like the FTP client, and is completely free. Notepad++ is completely free and offers an FTP client.', 'The process of creating and running a basic PHP script is explained, emphasizing the need to open and close the PHP script and the significance of using semicolons to end commands. Emphasizes the need to open and close the PHP script and the significance of using semicolons to end commands.', "The chapter demonstrates the 'hello world' program as the simplest PHP program and shows the process of uploading the PHP script to a web server and running it through a web browser. Demonstrates the 'hello world' program as the simplest PHP program and shows the process of uploading the PHP script to a web server and running it through a web browser."]}], 'duration': 589.925, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1027066.jpg', 'highlights': ['The chapter emphasizes the importance of understanding text formatting in PHP and its impact on web browser output.', 'The explanation of the next line command in PHP and its effect on dividing sentences onto two different lines.', 'The chapter highlights the difference between how PHP prints text and how web browsers interpret HTML formatting.', 'The process of creating and running a basic PHP script is explained, emphasizing the need to open and close the PHP script and the significance of using semicolons to end commands.', "The chapter demonstrates the 'hello world' program as the simplest PHP program and shows the process of uploading the PHP script to a web server and running it through a web browser.", 'Notepad++ is recommended for simple PHP programming, offering features like the FTP client, and is completely free.']}, {'end': 2029.144, 'segs': [{'end': 1646.34, 'src': 'embed', 'start': 1618.051, 'weight': 1, 'content': [{'end': 1621.253, 'text': 'Parse error syntax unexpected home content.', 'start': 1618.051, 'duration': 3.202}, {'end': 1627.215, 'text': 'So the main thing that you have to look at here is where is the error,', 'start': 1621.413, 'duration': 5.802}, {'end': 1635.119, 'text': 'especially once we start getting more complicated scripts that are using multiple PHP programs to operate?', 'start': 1627.215, 'duration': 7.904}, {'end': 1637.498, 'text': 'you have to make sure where the script is coming from.', 'start': 1635.418, 'duration': 2.08}, {'end': 1646.34, 'text': "So we see that it's coming from test, test.php, and then this is one of the reasons why I like Notepad++, it says on line seven.", 'start': 1637.538, 'duration': 8.802}], 'summary': 'Identify and resolve syntax error in php script, coming from test.php, on line seven.', 'duration': 28.289, 'max_score': 1618.051, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1618051.jpg'}, {'end': 1734.725, 'src': 'embed', 'start': 1701.266, 'weight': 0, 'content': [{'end': 1702.947, 'text': 'So now we can go 1, 2, 3.', 'start': 1701.266, 'duration': 1.681}, {'end': 1704.128, 'text': 'Oh, look at that.', 'start': 1702.947, 'duration': 1.181}, {'end': 1706.629, 'text': 'We messed up by not seeing print.', 'start': 1704.428, 'duration': 2.201}, {'end': 1707.889, 'text': 'That was the error.', 'start': 1706.989, 'duration': 0.9}, {'end': 1718.033, 'text': 'So the reason I like Notepad++ is because it gives you, one of the reasons is it numbers every single line.', 'start': 1708.389, 'duration': 9.644}, {'end': 1719.934, 'text': "So, when you're doing PHP code,", 'start': 1718.093, 'duration': 1.841}, {'end': 1728.644, 'text': 'most of the time the PHP code will give you an error and will more or less show you where the error is within the program.', 'start': 1720.422, 'duration': 8.222}, {'end': 1734.725, 'text': 'Sometimes, like I say with that whole, you forgot the quotation mark.', 'start': 1729.144, 'duration': 5.581}], 'summary': 'Notepad++ numbers every line, enabling error detection in php code.', 'duration': 33.459, 'max_score': 1701.266, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1701266.jpg'}, {'end': 1815.646, 'src': 'embed', 'start': 1753.58, 'weight': 3, 'content': [{'end': 1762.225, 'text': 'I want to show you one last final thing so that you understand something about PHP and HTML.', 'start': 1753.58, 'duration': 8.645}, {'end': 1766.327, 'text': 'PHP is going to print this out as text.', 'start': 1763.085, 'duration': 3.242}, {'end': 1774.712, 'text': "So if you're using a text reader, you may see a different format than if you're using an HTML reader.", 'start': 1766.727, 'duration': 7.985}, {'end': 1785.455, 'text': 'The reason is because HTML uses specific tags for how text is formatted, if you know anything about HTML.', 'start': 1776.127, 'duration': 9.328}, {'end': 1794.863, 'text': 'So if you want to make a break in a line, you have to do and that will make a break in a line.', 'start': 1786.076, 'duration': 8.787}, {'end': 1806.459, 'text': "If you have text on two different lines, but there's no tag between them, HTML will put the text on the exact same line.", 'start': 1795.504, 'duration': 10.955}, {'end': 1813.845, 'text': "This is one thing that can confuse people when they're printing things in PHP, especially to web browsers.", 'start': 1806.98, 'duration': 6.865}, {'end': 1815.646, 'text': "So I'm going to show you something here.", 'start': 1814.325, 'duration': 1.321}], 'summary': 'Php and html formatting differences impact text display, requiring specific tags for line breaks.', 'duration': 62.066, 'max_score': 1753.58, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1753580.jpg'}, {'end': 1980.619, 'src': 'embed', 'start': 1952.764, 'weight': 5, 'content': [{'end': 1958.745, 'text': 'When you are printing out commands that are going to be read by some kind of text editor or text viewer,', 'start': 1952.764, 'duration': 5.981}, {'end': 1966.949, 'text': "They may look different than if you're printing out commands that will be viewed by a web browser or something that reads HTML.", 'start': 1959.264, 'duration': 7.685}, {'end': 1970.532, 'text': "Again, I know I've seen this with a lot of people learning programming.", 'start': 1967.67, 'duration': 2.862}, {'end': 1972.833, 'text': 'This just kind of blows their mind in the beginning.', 'start': 1970.552, 'duration': 2.281}, {'end': 1976.596, 'text': "So if you don't explain it properly, it's all bad.", 'start': 1972.853, 'duration': 3.743}, {'end': 1980.619, 'text': 'But this is your first simple PHP program.', 'start': 1976.976, 'duration': 3.643}], 'summary': 'Printing commands for different viewers can look different, confusing for beginners.', 'duration': 27.855, 'max_score': 1952.764, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1952764.jpg'}], 'start': 1618.051, 'title': 'Troubleshooting php errors and php and html text formatting', 'summary': 'Covers troubleshooting php errors using notepad++, emphasizing the importance of identifying error location and utilizing line numbering. it also explains the significance of html tags in php text formatting and the necessity of using them for line breaks and formatting.', 'chapters': [{'end': 1753.019, 'start': 1618.051, 'title': 'Troubleshooting php errors', 'summary': 'Discusses troubleshooting php errors using notepad++, highlighting the importance of identifying the error location, understanding error messages, and utilizing line numbering for quick identification, demonstrated through a practical example of debugging a php script and resolving syntax errors.', 'duration': 134.968, 'highlights': ['Notepad++ provides line numbering, aiding in quickly identifying the location of errors within PHP scripts, facilitating efficient debugging processes.', "Understanding error messages is crucial in pinpointing the specific location of errors within PHP scripts, as demonstrated in the practical example of identifying a syntax error in the 'print' command.", 'Identifying the source of errors in complex PHP scripts is essential for effective troubleshooting, ensuring the accurate resolution of issues and smooth script operation.']}, {'end': 2029.144, 'start': 1753.58, 'title': 'Php and html text formatting', 'summary': 'Explains the importance of html tags in php text formatting, highlighting the differences in text display between text readers and web browsers, emphasizing the necessity of using html tags for line breaks and formatting.', 'duration': 275.564, 'highlights': ['HTML tags dictate text formatting in PHP output, causing discrepancies in display between text readers and web browsers. Emphasizes the impact of HTML tags on text display, highlighting the difference in appearance between text readers and web browsers.', "Necessity of using HTML tags for line breaks in PHP output, demonstrated through the example of 'hello' and 'world' displayed on the same line without the
tag. Illustrates the need to utilize HTML tags, specifically
, for creating line breaks in PHP output, as shown through the example of 'hello' and 'world' being displayed on the same line without the
tag.", "Explanation of the difference in text display between text readers and web browsers, with an example showcasing the display of 'hello' and 'world' in both environments. Provides an explanation of the discrepancy in text display between text readers and web browsers, using the example of 'hello' and 'world' to demonstrate the contrast in appearance."]}], 'duration': 411.093, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg1618051.jpg', 'highlights': ['Notepad++ provides line numbering for quick error location in PHP scripts.', 'Understanding error messages is crucial for pinpointing specific errors in PHP scripts.', 'Identifying the source of errors in complex PHP scripts is essential for effective troubleshooting.', 'HTML tags impact text formatting in PHP output, causing display differences between text readers and web browsers.', 'Necessity of using HTML tags, specifically
, for creating line breaks in PHP output.', 'Explanation of the difference in text display between text readers and web browsers.']}, {'end': 2512.073, 'segs': [{'end': 2109.552, 'src': 'heatmap', 'start': 2044.478, 'weight': 0, 'content': [{'end': 2048.601, 'text': "So that's all there is to the class PHP syntax and errors.", 'start': 2044.478, 'duration': 4.123}, {'end': 2061.523, 'text': 'If you understand how PHP code should be written, then it makes life a lot easier as we go and we start doing more complicated things.', 'start': 2049.828, 'duration': 11.695}, {'end': 2072.572, 'text': 'Again, the biggest problem, the biggest thing that separates programmers from wannabe programmers is how many typos they make.', 'start': 2061.964, 'duration': 10.608}, {'end': 2080.274, 'text': "Like I say, the reason why I'm an IT server systems guy is because I make a horrible amount of typos.", 'start': 2072.973, 'duration': 7.301}, {'end': 2085.235, 'text': 'If you made me write 5, 000 lines of code, it would just be a mess.', 'start': 2080.534, 'duration': 4.701}, {'end': 2094.797, 'text': "Not because I don't know what I'm supposed to do, not because I'm not intelligent, not because I don't understand how everything works,", 'start': 2086.775, 'duration': 8.022}, {'end': 2096.217, 'text': 'and so on and so on and so on.', 'start': 2094.797, 'duration': 1.42}, {'end': 2105.23, 'text': "It's simply because I always forget to put in semicolons and I always forget to close stuff and close brackets and close this and close that.", 'start': 2096.578, 'duration': 8.652}, {'end': 2109.552, 'text': "And therefore, when my code comes out, it's a complete mess.", 'start': 2105.89, 'duration': 3.662}], 'summary': 'Understanding php syntax reduces typos, making coding easier and more efficient.', 'duration': 80.408, 'max_score': 2044.478, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg2044478.jpg'}, {'end': 2306.386, 'src': 'embed', 'start': 2279.887, 'weight': 3, 'content': [{'end': 2286.652, 'text': "So basically, you're saying print this semicolon, then print this semicolon, then print this semicolon.", 'start': 2279.887, 'duration': 6.765}, {'end': 2296.759, 'text': "If you don't put that semicolon there, PHP is going to think all of that is one horrible, long, nasty command, it won't work.", 'start': 2287.152, 'duration': 9.607}, {'end': 2302.984, 'text': 'The final thing with this is remember everything you open in PHP, you have to close in PHP.', 'start': 2297.519, 'duration': 5.465}, {'end': 2306.386, 'text': 'You open the PHP script, you close the PHP script.', 'start': 2303.244, 'duration': 3.142}], 'summary': 'In php, remember to end commands with semicolons and open-close scripts.', 'duration': 26.499, 'max_score': 2279.887, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg2279887.jpg'}, {'end': 2426.898, 'src': 'embed', 'start': 2395.062, 'weight': 4, 'content': [{'end': 2396.763, 'text': "uh, doesn't, doesn't know how to?", 'start': 2395.062, 'duration': 1.701}, {'end': 2398.383, 'text': 'uh, how to help you with that?', 'start': 2396.763, 'duration': 1.62}, {'end': 2402.504, 'text': "uh, the big thing though that's why i use notepad plus plus is i love.", 'start': 2398.383, 'duration': 4.121}, {'end': 2405.465, 'text': 'i mean it has numbers on the left hand side.', 'start': 2402.504, 'duration': 2.961}, {'end': 2407.946, 'text': "you may think that's goofy and isn't that important?", 'start': 2405.465, 'duration': 2.481}, {'end': 2415.749, 'text': 'but again, once you start writing a hundred, two hundred thousand uh line programs, If you have an error on line 599,', 'start': 2407.946, 'duration': 7.803}, {'end': 2421.832, 'text': "you don't want to have to put your cursor at the top and go 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,, 14, 15, 16..", 'start': 2415.749, 'duration': 6.083}, {'end': 2426.898, 'text': "It's horrible.", 'start': 2421.834, 'duration': 5.064}], 'summary': 'The speaker uses notepad++ for coding, appreciating its numbered lines for easier navigation in large programs.', 'duration': 31.836, 'max_score': 2395.062, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg2395062.jpg'}, {'end': 2459.585, 'src': 'embed', 'start': 2435.902, 'weight': 5, 'content': [{'end': 2443.19, 'text': "When you're reading text that was formatted for a text editor, it is going to look different than text that is edited for HTML.", 'start': 2435.902, 'duration': 7.288}, {'end': 2450.739, 'text': 'So again, if we have PHP and it writes hello, world on two different lines, so hello on one line and world on the other.', 'start': 2443.711, 'duration': 7.028}, {'end': 2454.043, 'text': "if you look at that in a web browser, it's going to put that on the same line.", 'start': 2450.739, 'duration': 3.304}, {'end': 2459.585, 'text': "Why? Because HTML requires those HTML tags in order to know what's going on.", 'start': 2454.543, 'duration': 5.042}], 'summary': 'Text formatting differs between text editor and html, php outputs on separate lines but html displays on the same line.', 'duration': 23.683, 'max_score': 2435.902, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg2435902.jpg'}], 'start': 2029.144, 'title': 'Php syntax and errors', 'summary': 'Covers php syntax, emphasizing the importance of proper code writing to avoid mistakes, including the significance of semicolons, file naming conventions in linux, and the need to close every element opened in php. it also recommends using notepad++ for error identification and cautions about text formatting for web browsers.', 'chapters': [{'end': 2109.552, 'start': 2029.144, 'title': 'Php syntax and errors', 'summary': 'Covers php syntax and errors, emphasizing the importance of proper code writing to avoid common mistakes such as typos, which can lead to messy code and hinder productivity.', 'duration': 80.408, 'highlights': ['Understanding how PHP code should be written makes life easier for doing more complicated tasks.', 'The biggest challenge for programmers is making typos, which can lead to messy code and hinder productivity.', 'The speaker emphasizes that despite being knowledgeable, the frequent omission of semicolons and closing brackets results in messy code.']}, {'end': 2512.073, 'start': 2109.992, 'title': 'Php syntax and errors', 'summary': 'Explained the importance of proper php syntax, including the significance of semicolons and file naming conventions in linux, and emphasized the need to close every element opened in php for proper execution and error handling, with a recommendation to use notepad++ for ease of error identification and a caution about text formatting for web browsers.', 'duration': 402.081, 'highlights': ['The significance of proper PHP syntax, including the need for semicolons and file naming conventions in Linux, was emphasized, with an emphasis on the need to close every element opened in PHP for proper execution and error handling.', 'The recommendation to use Notepad++ for ease of error identification was highlighted, emphasizing the importance of line numbers for large programs.', 'The caution about text formatting for web browsers was mentioned, highlighting the difference between text formatting for text editors and HTML.', 'The class stressed the importance of proper PHP syntax and errors for future classes in the PHP programming track, indicating the significance of the covered concepts for upcoming lessons.', 'The chapter concluded with a reminder of the importance of the covered concepts and the anticipation of more classes in the PHP programming track, indicating the relevance and continuation of the topic.']}], 'duration': 482.929, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/L0pgyxOAdlg/pics/L0pgyxOAdlg2029144.jpg', 'highlights': ['Understanding how PHP code should be written makes life easier for doing more complicated tasks.', 'The biggest challenge for programmers is making typos, which can lead to messy code and hinder productivity.', 'The speaker emphasizes that despite being knowledgeable, the frequent omission of semicolons and closing brackets results in messy code.', 'The significance of proper PHP syntax, including the need for semicolons and file naming conventions in Linux, was emphasized, with an emphasis on the need to close every element opened in PHP for proper execution and error handling.', 'The recommendation to use Notepad++ for ease of error identification was highlighted, emphasizing the importance of line numbers for large programs.', 'The caution about text formatting for web browsers was mentioned, highlighting the difference between text formatting for text editors and HTML.']}], 'highlights': ['The importance of understanding basic syntax and formatting when creating a PHP script is emphasized, as it lays the foundation for more complex programming tasks, such as ensuring that the script works regardless of its length.', 'The PHP server provides errors when there is a problem, allowing users to identify and troubleshoot errors in the script.', 'The chapter emphasizes the importance of understanding text formatting in PHP and its impact on web browser output.', 'Understanding how PHP code should be written makes life easier for doing more complicated tasks.', 'The significance of proper PHP syntax, including the need for semicolons and file naming conventions in Linux, was emphasized, with an emphasis on the need to close every element opened in PHP for proper execution and error handling.']}