In this section, we will see how to send emails using PHPMailer, a class described by its creators as a ‘full-featured email creation and transfer class for PHP.’ In the previous topic, we discussed PHP’s mail() function but did not address some of its limitations. These include encryption, authentication, HTML messages, and attachments. As we […]
read moreWe will explore the use of $$ for various purposes in PHP programming. Contents: Introduction Making the name of a function or an object variable gives us certain flexibility in using functions and objects in ways that may not have been considered before. If you’ve already read the previous PHP-101 topics or understand what a […]
read morePHP provides a robust mechanism for handling errors and exceptions through its built-in exception classes. These exceptions are organized in a hierarchical structure, making it easier to catch and handle specific types of errors. Predefined Exceptions Class Tree Exception: Exception is the base class for all exceptions in PHP 5 and for all user exceptions […]
read moreIn this article, we will look at how $_GET works in PHP. $_GET is an associative array of variables passed to the current script via URL parameters. Let’s see a really simple example. Below, we’ll create a form that passes a name via URL to the same path using $_SERVER[‘PHP_SELF’]. In my case, I have […]
read more