
Learn php as a server-side scripting language for web development, embedding in html to fetch data from databases, and using it for cron jobs and php-gtk gui desktop apps.
Install and configure XAMPP from Apache Friends to run Apache, MySQL, and PHP locally, start the server, verify with localhost and phpinfo, and explore Brackets for PHP development.
Discover how to place PHP files in the htdocs directory, create a first PHP script with PHP tags and echo, and view it in localhost via a browser.
Explore PHP comparison operators such as greater than, less than, and equality checks, and master decision making with if, else, else if, and switch statements.
Explore the four PHP loops: while, do-while, for, and foreach, through practical examples of printing values, counting, and iterating arrays, with attention to condition checks and HTML escaping.
Explore require and include, and leverage essential PHP string functions such as strlen, str_word_count, strrev, strpos, and str_replace to process web data.
Explore how a circle class acts as a template for objects, detailing public, protected, and private members, a constructor, and an area method that returns pi times radius squared.
Learn how PHP handles scope, local versus global variables, and using the global keyword to modify top-level variables inside functions.
Explore PHP arrays and associative arrays, learning key-value pairs like a dictionary or hash, with numeric and string keys and the arrow => operator for assignment.
Explore how PHP exposes server variables via the $_SERVER array, inspect phpinfo, and see how get and post data pass between pages to drive actions.
Explore how $_REQUEST merges get and post data (and cookies) to handle form submissions when the method is unknown, and decide when to use request versus explicit get or post.
Set up a simple one-table database, run a data definition language script in phpMyAdmin, and execute a select to retrieve PHP and C from the languages table.
Learn to connect to a MySQL database with PHP using an object-oriented approach, query the language table, fetch results as associative arrays, and display them in a table.
PHP is an object oriented general purpose language suitable for a wide variety of tasks. In this course, we'll learn how to use PHP as a server-side scripting language for use in web development.
The course consists of four units:
Unit 1: covers basic syntax, variables, and language features such as loops and decision constructs. We'll also learn how to download and install PHP as a part of the XAMPP distribution so it can be used in the context of a web server running on your local computer.
Unit 2: PHP's object oriented features will be learned, along with basic function syntax and scoping rules. We'll also talk about some useful string functions.
Unit 3: Associative arrays will be discussed in Unit 3. Arrays are the key to understanding the mechanism of sending and receiving data via the request mechanism in PHP. We'll learn how to work with data via REQUEST, GET, and POST, and we'll also cover some important server variables exposed by PHP.
Unit 4: teaches how to integrate MySQL databases with PHP. The concentration here is on the PHP communication with MySQL using the mysqli class in an object oriented style. If you need a refresher on the MySQL, Checkout out MySQL course.
I hope you enjoy the course, and I look forward to working with you!