PHP

htmlspecialchars in PHP

htmlspecialchars is a PHP function that serves to provide security against cross-site scripting (XSS) attacks. This function was added in PHP version 4.3.0 and has better recursion protection than the htmlentities function, the difference between both being that htmlentities translates everything except < and & …

Read more

PHP

Increase session timeout in PHP

There are some best ways to increase session timeout in PHP, we will discuss the easy way to do it. First, we will see about the session in PHP for better understanding. What is Session In PHP? The session stores temporary information about a user …

Read more