Session hijacking is when an idle person steals and use someone else’s session ID, which is something like a key to a safe deposit box. The session hacking cannot breach the database or the web …
Read More »Handling and Avoiding Errors in PHP
Understanding Error Levels In PHP
Whenever any error occur while running the script then the PHP engine triggers an error. There are fifteen different levels of errors are available in PHP, and each level is represented by an integer value …
Read More »Trigger Errors In PHP
The PHP engine Trigger Errors is an error whenever it encounters a problem with the script, a user can also trigger errors themselves. It can help to make the application more robust, because it can …
Read More »Logging Your Own Error Messages In PHP
logging-error-messages-php When an error is raised, the PHP engine usually logs the error message somewhere. A user can control exactly where the error message is logged by using a few PHP configuration directives: display_errors: This …
Read More »Logging Your Own Error Messages In PHP
Here, a user will learn how to log their own error messages. A user can use the error_log() function to log error messages to the system log or a separate log file, or to send …
Read More »Letting Your Script Handle Errors In PHP
To get flexibility, a user can create their own error handler function to deal with any errors raised when the script runs. Error handler can then inspect the error and decide what to do It …
Read More »Using Exception Objects to Handle Errors In PHP
PHP gives an exceptions, which are used for triggering and handling error conditions. Rather than returning a single error value, the method or function can create a rich Exception object that includes detailed information about …
Read More »