
Explore the basics of PHP and get started with PHP scripting. Understand its forgiving syntax and build simple web applications with database interactions.
Explore the fundamentals of PHP, including variables, arrays, objects, constants, operators, and control structures. Learn how to set up your environment, write functions, and review sample source code.
Discover what PHP is as a server-side, open-source language that renders code into visible web page output; learn its syntax, whitespace handling, and versions from 5 to 7.
Set up a local php server on your computer using zap to run php locally, configure the document root, and verify by loading a hello world page on localhost.
Learn PHP basics by writing code with standard PHP tags, understand how server-side rendering works, and use phpinfo() to inspect configuration on localhost with XAMPP.
Learn PHP code commenting using #, //, and /* */ for single- and multi-line notes, keeping comments private on the server while the browser renders only the PHP output.
Explore how to output content in PHP using echo and print, understand case insensitivity and quoting styles, handle whitespace and escaping, and render HTML breaks correctly.
Master PHP variables by using a dollar sign, valid names starting with a letter or underscore, and assignment with = to hold strings, numbers, and booleans, then echo.
Explore PHP variable types, including strings, integers, doubles, booleans, and nulls, and compare single versus double quotes in string handling. Preview arrays and boolean conditions in upcoming lessons.
Learn to create and assign arrays in php with a $ variable, add items, and access values by indexes. Print with print_r, concatenate with a period, and sort with sort.
Learn how to define a simple php class with public properties and a show name function, create an object, and output its value like hello world.
Define PHP constants to hold unchanging values, such as ad space, and echo them without dollar signs. Use constants for API keys or library paths to keep values fixed.
Explore arithmetical operators in php by assigning values to variables, performing addition, subtraction, multiplication, and division, and building dynamic formulas with brackets and assignment operators.
Explore assignment operators in PHP, using =, +=, and example values like a=5 and b=25; learn that you must assign c first before using shorthand, and glimpse conditional statements.
Explore how PHP conditional statements control output using if else logic, including checking variables like a and b, handling true values, and using else and switch in later lessons.
Explore how logical operators power PHP conditional statements, using and, or, and not to combine conditions. See examples with A and B and preview comparison operators next.
Discover how the PHP ternary operator simplifies conditional logic by setting values based on a condition. The lesson shows echoing B to reveal the result.
Explore PHP string operators and how they concatenate strings to join them, including spaces, producing hello world and then hello world hello world in the browser.
Explore PHP loops, including while, do while, and for loops, and learn how to use and increment variables to produce dynamic output with clear exit conditions.
Explore PHP functions, learn how to define and call them with arguments, and handle global versus local scope to produce dynamic outputs and returned values.
Give beginners a solid foundation in PHP by teaching basic functionality, including variables, loops, conditions, and functions, with included source code and browser-based practice to build simple applications.
Learn how to output PHP code into HTML pages by embedding PHP in a page and echoing variables like hello world, using shorthand and short open tags.
Learn the differences between PHP echo and print for output. Discover how print returns a value usable in expressions, while echo outputs without returning a value.
Numbers types in PHP include decimal, octal, hexadecimal, and binary, showing how they are interchangeable and can be used in formulas with variables.
Explore how PHP references values using the ampersand to link a, b, and c, including double referencing and how echo reveals updated outputs.
Explore PHP variable information by using var_dump to reveal type and value. Identify strings, integers, and arrays, and see how var_dump shows types, values, and array structure for debugging.
Compare include and require in PHP, showing how they pull in header and footer templates and how missing files trigger fatal errors with require.
Explore server variables in PHP, output the domain using the host header, and access attributes like remote address to track users and prevent abuse while noting PHP version differences.
Learn how to delete and destroy variables with unset in PHP. Use unlink to delete files, and be mindful of undefined variables and potential data loss.
Learn to create and manipulate PHP arrays, count items, remove a single element with unset, print arrays, and apply reverse, slice, sort, and shuffle while preserving index association.
Learn to check if a PHP variable exists or is empty using empty to avoid errors, and observe booleans indicating the result.
Explore PHP string functions, including shuffling the string's characters, measuring length, indexing characters, changing case, splitting into arrays, stripping slashes, and handling HTML entities, with practical examples.
Demonstrate how to convert strings to arrays and back using PHP's explode and implode functions, with delimiter options like commas and spaces, and practical code examples.
Set up and define database connection variables in PHP. Ensure Apache and MySQL run locally, access phpMyAdmin, and prepare a settings file with host, user, password, and database name.
Create a database with a first sql query, using a setup script to name it 'my test' and establish a persistent connection, so subsequent queries reference the database by name.
Create a database table named courses by writing a query that defines an auto-incrementing primary key id and a title column, then preview and execute it using phpMyAdmin.
Learn how to insert data into a PHP database by using an insert into courses query, specifying column names and values, handling the result, and preparing for selecting data.
Learn to fetch and display PHP and MySQL data using select queries with where, order by, and limit, then loop through and output results to a web page.
Learn how to delete data with SQL in PHP, using delete statements such as delete from table where id, and explore deleting via phpMyAdmin and procedural versus object oriented connections.
Learn to connect to a database using an object oriented approach with a link object, handle connect errors, and run queries to create a PHP database named my test three.
Create a database table with the object-oriented PHP and MySQL approach, update the connection, run a query to build the courses table, and verify creation with error handling.
Transform procedural inserts to object oriented in PHP, using a query to insert values and display errors. Explore multi query for executing multiple inserts efficiently.
learn how to select content from a database using a select query on the courses table, fetch results as objects, and display each course’s id, title, and lesson count.
Delete a row in MySQL using an object-oriented PHP approach, reusing the same query format, with admin panel practice to generate and test queries before integrating into PHP code.
Learn how to set up your local PHP development environment using brackets and zap, run Apache and MySQL, and implement image uploads with ajax using jQuery and Google CDN.
Set up a local PHP environment, verify PHP is running, and enable file uploads. Create a basic HTML form with a file input and post multipart data to upload files.
Learn how to handle PHP file uploads by grabbing the uploaded file from a form, checking contents with isset, and echoing the data.
Explore image upload validation in PHP by inspecting file data, validating mime type and extension with in_array and pathinfo to allow only jpeg and png uploads.
Validate uploaded images by checking file size against thresholds, outputting size details and errors, and ensuring no overwriting existing files.
Learn how to upload images with PHP by creating an images directory, checking file existence, validating size, and moving uploads with move_uploaded_file.
Learn to use jQuery and AJAX to upload images without reloading the page by wiring a form with an uploader id and preventing default submission to a PHP file.
Create a form data object from a form, then post it with ajax to a php uploader script, handling the server response without page reload.
Listen for changes on the file input to load a selected image as a live base64 preview, using a file reader to display the image and prepare for Ajax upload.
Decode base64 images in PHP by decoding base64 data, sending via AJAX, generating and saving the image on the server, and returning the image path for preview.
Review the index.html code, implement ajax-based image uploads from a frontend form, convert files to base64 with a file reader, and post to a PHP uploader with live preview.
Review the uploader.php code to retrieve upload information, validate image type (jpeg or png) and extension, move the file to the target path, and return the result to the client.
Decode base64 image data in PHP 5, clean the string, and save it as a blob to a generated path, then return the image path for upload.
Fast paced course perfect for beginners to learn the basics of writing PHP code. Learn about variables, loops, functions, conditional statements and a whole lot more. All the source code is included to get you started quickly.
Explore PHP coding learning the basic syntax used to write PHP applications. Find out more about PHP how it works and how it can be used to write applications.
This course is designed for beginners, it will walk you through learning the very basics of PHP coding.
Source code is included, as well as links to resources and information about setup of resources. This course will help you get started with PHP and by the end of the course you will be creating your own PHP applications.
The course covers all the fundamental core concepts needed to get started quickly with PHP. Learn and practice the code presented within the course to discovery what you can do with PHP. PHP is one of the most popular programming languages today. PHP is flexible and allows the developer an easy to learn programming language that can be very powerful.
PHP is everywhere and learning more about how to code using PHP is an in demand skill. I'm here to help you learn about PHP and ready to answer any questions you may have. Start coding PHP within minutes let me show you how.