Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Practical PHP: Master the Basics and Code Dynamic Websites
Rating: 4.6 out of 5(16,418 ratings)
270,978 students

Practical PHP: Master the Basics and Code Dynamic Websites

Code Your Very Own Dynamic Websites by Learning PHP Through Real-World Application & Examples
Last updated 7/2015
English

What you'll learn

  • By the end of this course, you will have a thorough understanding of the PHP fundamentals
  • Upon completion, you will have coded a handful of useful dynamic PHP examples
  • In the last section of this course, you focus on building a dynamic website for a restaurant
  • By the end of this course, you will be so excited about your newly acquired PHP skills and want to start converting all your websites to PHP!

Course content

8 sections45 lectures6h 19m total length
  • Welcome!1:47
    Hey everybody, welcome to Code Dynamic Websites with PHP!

    My name is Brad Hussey and for the next little while, I'm going to be your personal instructor, and I will be teaching you how to hand code PHP!

    This course is a Total Beginner's Guide to Coding Your Very Own Dynamic Websites with PHP, so you need no prior knowledge or experience — although it's a good idea that you know some HTML (my beginner's guide "Build a Website from Scratch with HTML & CSS" will get teach you everything you need to know).

    My approach with this course, like many of my courses, is to take a practical "hands on" approach. While there will be *some* theory involved — every single lesson requires you to get your hands dirty and exercise what you've learned in that specific lesson. I find this to be the best approach, because you're able to retain much more of what you learned, and therefore, get up and running with maximizing your practical knowledge of PHP quickly!

    So — why learn PHP? Well, PHP is a very powerful scripting language used by millions of websites. Some of the most popular websites and frameworks utilize PHP to build their dynamic websites. PHP works very well with HTML, and therefore will allow you to start coding dynamic websites quickly without having to learn some of the more complicated scripting languages out there.

    I think you're going to love this course, and you're going to especially love what you're going to learn. When I first started learning PHP, I *couldn't wait* to start implementing what I learned into my websites! I think you'll feel the same.

    Also, I am excited to be offering this course absolutely free for three reasons:

    1. I don't want a purchasing decision to get in the way of you learning what I have to offer in this course.
    2. I want as many people as possible to be able access the content.
    3. I want to give you learning material so good that it should cost money.

    So, I invite you to join me in learning how to Code Dynamic Websites with PHP!

    Let's do this.

  • What is PHP?1:24
    Lecture 2: What is PHP?

    PHP is one of the most (if not the most popular) server-side programming language on the web today, with more than 240 million websites using it (as of January 2013 — according to Wikipedia).

    Websites like Google, Apple, Facebook and YouTube utilize PHP. Popular Content Management Systems (CMS) like Wordpress, Drupal, Joomla and Expression Engine all rely on PHP.

    PHP stands for "Hypertext Preprocessor" — I know, right? I don't get it either...

    PHP can be used as a stand-alone programming language to create robust applications, or it can be used within HTML code to create dynamic websites (which is the goal of this course).

    PHP runs on a "server", and in order to use PHP on your own computer when developing a website, you'll need to have a server installed on your machine — don't worry about this part, it's quick & painless to get set up, and it doesn't cost you a penny.

    I'll be covering the tools you'll need in an upcoming lecture.

    Also, I will be frequently referencing PHP.net throughout the duration of this course, and I recommend you bookmark it for easy access.

    Stay tuned, because in the next lecture I'll give you a quick rundown of some of the cool things PHP can do!

    See you there!

  • What does PHP do?1:08

    Lecture 3: What does PHP do?

    PHP can do a whole bunch of really neat things, such as:

    • Access information typed into a web form and do something with it, like: Send an email, navigate to a specific page based on the info submitted in the form, create a user account, log a user in, etc.
    • Find out what browser and operating system your visitors are using.
    • Display alternate versions of a web page to users who are using mobile devices, or specific browsers (like Internet Explorer).
    • Do math!
    • And most importantly (in my opinion), create templates for your website so you don't have to hand-code your headers, footers, and sidebars for every single page!

    There is so much that PHP can do, but I don't want to go into all the details right now, because I'd like to show you by jumping right in — I think it's much more fun that way!

    Next up: You're going to need to have some specific tools in order to get the best out of your PHP learning experience. I'll cover those in the next lecture.

    See you there!

  • Tools to Get Started7:23

    Lecture 4: Tools to Get Started

    As I mentioned before, because PHP is a "server-side programming language" it requires a server in order to run. Now, I don't mean a physical server that costs thousands of dollars and takes up an entire closet — I mean a virtual server that can run on your computer. The great thing about this is that there are a number of great free options out there.

    If you're on a Mac, I suggest using MAMP. MAMP stands for "Mac Apache – MySQL – PHP" — however, they've recently developed a Beta version for Windows, so the Windows version stands for "My Apache – MySQL – PHP". If you're on a Windows machine, I recommend trying the Windows-version of MAMP as well — keep in mind that it's in Beta at the time of the recording of this video, so there may be some bugs they're working out.

    Alternatively, both Mac & PC users can try something like AMPPS, but I will be using MAMP so it may be easier for you to follow along.

    In the interest of full disclosure: Please keep in mind that some of the following resources are my affiliate links, and I’ll earn a small commission should you decide to make a purchase — at absolutely no cost to you! Keep in mind that I either have thorough experience with the following tools & websites, or have heard great things about them, and I am only recommending them because they have helped me succeed in my business, or are incredibly useful. Don’t spend your money on any products or resources unless you think they will help you, or further you in your learning experience.

    My Most Recommended Tool

    Coda 2 for Mac

    The next tool you're going to need is a code editor. If you're serious about coding, or you want to start out with a solid tool to code with, I strongly recommend Coda 2 for Mac. A beautiful User Interface with tabbed navigation, a super sidebar, and a simple layout. The features are outrageous and extensive, with code folding, smart complete, auto indentation, GIT integration, a built-in terminal, iCloud support — to name a few. The features seem to be endless. I use Coda 2 for all of my courses & tutorials, and if you decide to use Coda 2 as your editor of choice, it would greatly benefit you when taking my courses. The price of the editor weighs in at $75, but there is a 7-day unlimited trial — which is plenty of time to complete this course!

    However, there are more options out there. Here are a few you might consider:

    For both Mac & Windows

  • Sublime Text
  • A full fledged code editor that features side-by-side mode for comparing documents, full screen mode, and a whole bunch of other great features. One of the best editors out there, and if I didn't love Coda 2 so much I would use this one. The price tag for Sublime Text is $70, but comes with a free trial.

    For Windows

  • Notepad++
  • Notepad++ is a free (as in "free speech" and also as in "free beer") source code editor and Notepad replacement that supports several languages. A solid Windows-based code editor!

    For Mac

  • Espresso
  • A sexy code editor that looks beautiful, and performs just as beautifully. Espresso claims to "turbo-charge your workflow". It features extensive language support, powerful smart snippets, code folding, real-time live styling, and so much more. I used to use Espresso exclusively, and I strongly recommend it. Espresso's price tag is $75, but also has a free trial.

    TextWrangler

    TextWrangler is a simple, barebones, text editor. It handles code well, but is meant for hand-coding with no frills. It's a good practise to learn how to hand code the "no frills" way if you're just starting out with learning how to code. It's free, too!

    BBEdit

    The big brother to TextWrangler, BBEdit has a much more impressive feature set, much like the features listed in the code editors I previously mentioned. Price: $49.99, but free to try.

    Textastic

    A minimal code editor that allows multitasking, auto-code completion, syntax highlighting and more. I've never used it personally, but it seems to be a popular choice. The great thing about this one is it's only $5.99.

    Browsers

    I suggest using a modern browser, like Google Chrome, Apple Safari or Firefox. I will be using Chrome throughout this course.

    Domain Names & Web Hosting

    It's not required for this course, but it's a good idea to have a domain name & hosting account ready as later in the course we will be touching on how to upload your website live on the web.

    My most recommended hosting provider is Justhost. I use them for all of my websites, and have been a happy customer for nearly 7 years. I recommend these guys to all of my clients, my students, my family and friends. If you’re looking to start your very first website, or are looking for a reliable hosting provider — look no further. You get a free domain name for life, great customer service, unlimited domains, unlimited email accounts, unlimited GBs of space, an anytime money back guarantee and my favourite part: You can set up a blog website in minutes with 1-click WordPress Install. These guys are awesome!

    If you're looking to purchase a domain name, I recommend GoDaddy. I use GoDaddy to purchase all of my domain names, as it’s one of the best (if not, the best) website to find & purchase your domain names.

    Learning HTML & CSS

    If you're unfamiliar with HTML & CSS, I strongly recommend you pick up some basic skills before going forward with this course, as you might get lost in some of the concepts without HTML knowledge. Lucky for you, I have a total beginner's course called "Build a Website from Scratch with HTML & CSS" and it will get you up and running quickly. I'll also give you 50% off if you use the Coupon Code "DYNAMICPHP".

    That's all for important tools & resources at this point. I recommend bookmarking my Resources page at bradhussey.ca/resources for reference, as I frequently update that page with the helpful tools I use to make my life a little easier.

    Thanks for hanging in there! Next up, we're diving into PHP basics!

    See you there.

  • The Course Files3:39

    Lecture 5: The Course Files

    You may download the course files, absolutely free, using the following link:

    http://course.bradhussey.ca/codephp/download.php?ref=udemy

  • PHP Pop Quiz!
  • Requirements

    • Internet Connection
    • Willingness to be awesome
    • Determination
    • Sense of humour
    • Code Editor
    • Some additional (free) tools

    Description

    Learn How to Code Dynamic Websites with PHP 5+ for absolute beginners! 

    This course is a total beginners guide to coding dynamic websites with PHP so you need no prior knowledge or experience with PHP — although, it is a good idea if you know some HTML & CSS. (My beginner's guide Build a Website from Scratch with HTML & CSS will teach you everything you need to know about HTML & CSS.) 

    Practical Hands-on Approach 

    My approach with this course, like many of my courses, is to take a practical "hands on" approach. While there will be some theory involved — every single lesson requires you to get your hands dirty and exercise what you've learned in that specific lesson. I find this to be the best approach, because you're able to retain much more of what you learned, and therefore, get up and running with maximizing your practical knowledge of PHP quickly! 

    Why Should I Learn PHP? 

    So — why learn PHP? Well, PHP is a very powerful scripting language used by millions of websites. Some of the most popular websites and frameworks utilize PHP to build their dynamic websites. PHP works very well with HTML, and therefore will allow you to start coding dynamic websites quickly without having to learn some of the more complicated scripting languages out there. 

    You Will Love This Course 

    I think you're going to love this course, and you're going to especially love what you're going to learn. When I first started learning PHP, I couldn't wait to start implementing what I learned into my websites! I think you'll feel the same. 

    It's Totally Free! 

    Also, I am excited to be offering this course absolutely free for three reasons: 

    1. I don't want a purchasing decision to get in the way of you learning what I have to offer in this course.

    2. I want as many people as possible to be able access the content.

    3. I want to give you learning material so good that it should cost money.

    The Final Project 

    Throughout the course you will be building a handful of dynamic PHP examples, but in the last section of the course, we will build a dynamic website for a (fictional) restaurant. 

    So, I invite you to join me in learning how to Code Dynamic Websites with PHP! 

    Let's do this.

    Who this course is for:

    • Total Beginners
    • Web Design Students
    • Graphic Designers
    • Entrepreneurs
    • Business Owners
    • Bloggers
    • Web Designers