Introduction to Basic PHP Development

Hey guys, welcome to this exciting new course applied web development with PHP. I am your instructor Trevoir Williams. In this course you will be learning the fundamentals of web application development using HTML, CSS, PHP, Pachi, server and hosting tools such as Heroku, and cPanel. Of course, all of that wouldn’t be complete without tying it in with a MySQL database so that we can have a fully dynamic and data driven web application. By the end of this course, you should be able to accomplish basic web development with HTML and CSS, set up a XAMPP server, understand the role of PHP in web applications, build a MySQL database using PHP myadmin. And all of that would help you to build a data driven and dynamic web applications. We’ll be looking at PHP PDO, and how to style or applets Using the most popular CSS framework bootstrap, ultimately, we would want to incorporate the use of source control through the use of GitHub, and ultimately host our web application on Heroku. Most other courses will teach you how to understand PHP how to do the basics of PHP, but they don’t really show you the end to end development process. And that is what we hope to accomplish in this course, at the end of this course, you should be empowered and equipped with all the tools you need to build any application that is asked of you. Now before we go much further, I want us to take the next few minutes to understand the tools that we’ll be using and how exactly they work in the whole web development ecosystem. Let’s start with PHP. PHP is an open source web scripting language which is used mostly for server side stuff, and it is short for hypertext preprocessor or personal homepage, PHP is designed to be fully embedded in HTML and manipulate HTML as you the developer. So desires. If you have any exposure to any other programming languages, such as c++, C sharp or Java, then you’ll find that it’s very familiar working with PHP. If this is your first time working with any programming language, then that’s fine because we will be starting from the ground up. The next big ticket item would be XAMPP server, and XAMPP is really short for Well, the x really means any environment. The basis of XAMPP server is really what we call the LAMP stack. That’s a MP and l really means Linux, the A Apache m, MySQL and PHP or Perl. So XAMPP is really just adoption of the LAMP stack onto other operating systems such as Windows and Mac OS. Since the lamp, the L stands for Linux. And it is the most popular PHP development environments. It’s a one stop shop, you install XAMPP. And then you get that patchy server, which is required to host the PHP code. You get MySQL which is a database server, and you get all the required libraries for PHP and well Perl, but we will be doing PHP. So we focus on the PHP libraries. And more recently, the M also means Maria dB, which is a spin off of the more popular my SQL database engine. Now here we take a quick look at what HTML and CSS and PHP will look like. Well, this code snippet has no CSS in it just yet. But there you see that you have some HTML, which is the black text. And then you have the PHP tags that were previously alluded to, and some code which would print some text inside Have an HTML page. Traditionally HTML pages have the extension dot HTML or dot htm. When we’re using PHP, these files will have the extension dot php. And these PHP tags will only work in dot PHP files. But as we go along and we get into more development stuff, then you’ll see how that works. Now every step of the way, we will want to track our progress. And we will be doing this using source control, and more specifically through GitHub. Now, GitHub or by extension source control allows you to track changes to your project, collaborate with team members, if you have to work in a team setting instead of copying and pasting code files, you can just upload to a central please, that everybody has access to all of your changes. We can also manage project documentation centrally. At the end of the day, GitHub is probably the most Popular and also free source control tool that is on the internet. And it’s widely accessible, widely available to everybody. And once again, it’s free of charge. The last thing I want to mention is Heroku, which allows us to deploy PHP web applications in minutes. And we can host the web application as well as the database all on Heroku. We’ll also be looking at using the more traditional routes, which is C panel. I didn’t allude to it here. But as we get into the course, we will see how valuable those tools are. Once again, we have an exciting journey ahead of us and I hope you stick around and I hope you apply yourself. At the end of this course you should be able to take on any challenge that comes towards you in PHP web application development.