Learn By Example: PHP For Dynamic Websites
- 13 hours on-demand video
- 134 downloadable resources
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to 4,000+ top Udemy courses anytime, anywhere.Try Udemy for Business
- Apply advanced constructs such as cookies, sessions and object oriented programming correctly
- Mitigate basic web security risks by sanitizing and validating user input
- Build a robust login authentication system using MySQL to allow users to sign up and log into your site
- Harness the power of programming to build intelligent, interactive and personalized web sites
PHP is a programming language which runs on the server, makes decisions, edits HTML to reflect those decisions and transmits pure HTML to the user. PHP has powerful constructs to work with web sites and abstracts away a lot of the nitty gritty!
Web forms are used to get user input which can be processed and stored on a site. Forms integrate seamlessly with PHP.
Break allows you to break out a loop early and continue allows you to skip certain iterations.
MySQL is a great database to use with your websites. And it's free!
Cookies are little bits of information stored on your machine which allow web sites to remember you even when you're not logged in.
Working with cookies in PHP is dead easy - use superglobals and simple functions to set, access and delete cookies.
All pages of your website use the same session. Session id is generally communicated to the client via a cookie which is sent to the server on every request but sessions can work even when cookies are turned off! Learn about the session.use_trans_sid flag which makes this easier.
This is a common interview question for PHP developers.
All source code need not sit in one file. Break up your code into logical components in different files and include those files when you want to use that code.
Ohh and while you learn this set up a Users table which will hold all users that sign up for your site.
While sending data from the client in the sign up form we need a way to ensure that only our trusted site is allowed to sign up new users. Use session variables to make sure this is the case.
Once a user logs in the web site should remember the user till as long as the session lasts. Also if the user originally requested a certain web page she should be redirected to that page one she logs in. This lectures puts together all these fine touches.
Classes and objects allow us to model the real world in programming. This helps bring the basic data types together as building blocks into more meaningful and logical units.
pi is a constant, don't hardcode it's value or use variables to represent it!
- No prior programming experience needed, this course starts at zero
- A little basic HTML, CSS and SQL will be helpful for some of the examples - not really required though!
Super-practical PHP: Learn, by example, how to build a smart website with cookies, sessions, login authentication, MySQL integration, Object Oriented PHP and lots more!
Let's parse that.
- This course is super-practical: packed with knowledge you can put to use right away, while still giving you a good foundational understanding of web programming, not just PHP.
- Its about building smart websites: these days, its not OK for a website just to look snappy - login, cookies and sessions are considered necessities, not luxuries anymore
- In this course, we will learn by example. Each example is self-contained, has its source code attached, and gets across a specific PHP use-case. Each example is simple by itself, but they come together as building blocks to build complex use cases.
What's included in this course:
- Installing and setting up a basic web server with PHP
- Web security basics: validating and sanitizing user input data. Web forms, mitigating XSS and XSRF attacks
- MySQL Integration and Installation: Connecting to a database, running queries, processing results, prepared statements. Easy integration with MySQL so it's dead simple to work with databases for permanent data storage
- Cookies, Sessions and the differences between them, using sessions without cookies
- End to end login authentication
- Object oriented PHP, classes, inheritance, polymorphism
- GET, POST and other superglobals
- YEP! Students who are looking to use the power of programming to build dynamic web sites
- YEP! Students who are looking to get into the nitty gritty of advanced PHP constructs such as cookies, sessions and object oriented programming