1 00:00:01,860 --> 00:00:08,858 [SOUND] Hi, I'm Alena, developer, teacher and lifelong learner. 2 00:00:08,858 --> 00:00:12,500 Let me be the first to welcome you to the PHP community. 3 00:00:12,500 --> 00:00:16,690 PHP is one of the most widely used technologies on the Internet today. 4 00:00:16,690 --> 00:00:21,190 I'm almost certain that you've heard of at least one of the many projects built on 5 00:00:21,190 --> 00:00:26,480 PHP, such as WordPress, Drupal, Wikipedia or Facebook. 6 00:00:26,480 --> 00:00:31,872 A conservative estimate is that 25% of the web is built on PHP. 7 00:00:31,872 --> 00:00:35,402 PHP started as a personal project for Rasmus Lerdorf for 8 00:00:35,402 --> 00:00:38,140 the maintenance of his personal webpage. 9 00:00:38,140 --> 00:00:42,740 At the beginning, PHP was an abbreviation for personal home page tools. 10 00:00:42,740 --> 00:00:44,950 As in PHP tools. 11 00:00:44,950 --> 00:00:49,170 In 1995 these PHP tools were released to the world and 12 00:00:49,170 --> 00:00:52,430 other developers learned about it and started to use it. 13 00:00:52,430 --> 00:00:54,860 Two programmers Andy Goodman and 14 00:00:54,860 --> 00:00:59,720 Steve Zeroski really liked PHP but they found it inefficient and lacking features 15 00:00:59,720 --> 00:01:03,850 they needed to power an e-commerce application that they were developing. 16 00:01:03,850 --> 00:01:07,580 They began collaborating with Rasmus in the development of a new 17 00:01:07,580 --> 00:01:09,530 independent programming language. 18 00:01:09,530 --> 00:01:13,420 This entirely new language was simply called PHP and 19 00:01:13,420 --> 00:01:16,650 now stands for PHP hypertext preprocessor. 20 00:01:17,880 --> 00:01:22,490 As an open source project, PHP has a core team of around ten developers. 21 00:01:22,490 --> 00:01:27,140 It also has other contributors that help with quality assurance, documentation, and 22 00:01:27,140 --> 00:01:30,510 suggestions for bug fixes and improvements. 23 00:01:30,510 --> 00:01:34,020 Besides the PHP core, there are also many frameworks and 24 00:01:34,020 --> 00:01:38,450 packages that you can use to add functionality to your programs. 25 00:01:38,450 --> 00:01:40,940 With so many people using PHP and 26 00:01:40,940 --> 00:01:45,666 contributing to the community the language continues to flourish. 27 00:01:45,666 --> 00:01:51,427 PHP turned 20 years old in 2015 and also saw the release of PHP seven. 28 00:01:51,427 --> 00:01:55,210 This major rewrite more than doubled the speed of the previous version. 29 00:01:56,250 --> 00:02:00,510 The driving force behind PHP has always been to solve a problem, and 30 00:02:00,510 --> 00:02:02,360 make things easier to do. 31 00:02:02,360 --> 00:02:05,320 To that end there's no complicated installation 32 00:02:05,320 --> 00:02:08,440 as most servers come pre-installed with PHP. 33 00:02:08,440 --> 00:02:12,110 It's also easy to use PHP to create a website. 34 00:02:12,110 --> 00:02:15,860 You can embed PHP code directly into your HTML 35 00:02:15,860 --> 00:02:20,720 by using code blocks then immediately preview the results in your browser. 36 00:02:20,720 --> 00:02:25,130 There's no need to compile your PHP code, as with some other languages. 37 00:02:25,130 --> 00:02:26,950 So you can get up and running quickly. 38 00:02:26,950 --> 00:02:32,340 PHP is a great choice for creating simple yet powerful websites and applications. 39 00:02:32,340 --> 00:02:36,560 PHP is a server side language. Simply defined, 40 00:02:36,560 --> 00:02:41,580 a server side language is one where the code is processed on the web's server. 41 00:02:41,580 --> 00:02:45,870 This server receives a request from a client, processes that script on 42 00:02:45,870 --> 00:02:51,420 the server, and then returns the results as an HTML response to the client machine. 43 00:02:52,540 --> 00:02:56,030 In other words, the server sends back plain HTML. 44 00:02:56,030 --> 00:02:58,915 Just like the kind you would write by hand to create a webpage. 45 00:02:59,980 --> 00:03:01,970 Your web browser is the client. 46 00:03:01,970 --> 00:03:07,060 So if you view the source code of a PHP file in a web browser, you should not see 47 00:03:07,060 --> 00:03:14,220 any PHP code only the HTML that the server outputs after processing the PHP program. 48 00:03:14,220 --> 00:03:17,767 In this course, I'm going to walk you through the basics of the language 49 00:03:17,767 --> 00:03:20,278 ranging from simple statements to conditionals. 50 00:03:20,278 --> 00:03:25,610 We'll be creating a simple unit converter as well as a daily exercise program. 51 00:03:25,610 --> 00:03:28,801 We'll then finish up by using those scripts on a webpage. 52 00:03:28,801 --> 00:03:32,936 I hope you're ready to get started because I'm excited to introduce you to 53 00:03:32,936 --> 00:03:34,650 the fascinating world of PHP.