In general, security by obscurity is one of the weakest form of security. Suppose If I were exploiting a site, I wouldn’t check what scripting language the site runs on, because all that would matter to me is exploiting it. Hiding the fact that you use x language isn’t going to prevent me from bypassing […]
Author: PHPZAG Team
Using PHP regex to remove link but keep anchor text
Sometimes we need to remove anchors from html while displaying html content. You can easily remove links or anchors from a html content using PHP preg_replace() function with regular expressions.
How to convert .xsd file into array in PHP
PHP has no direct function to convert .xsd (XML Schema Definition) file into associative array like XML file. So you have to first convert .xsd file into xml then finally parse xml file into associative array.
Sharing PHP SESSION Variables between Multiple Subdomains
As we know that the PHP session ids are saved in Cookies. To make a cookie available in all the sub-domains, we need to assign it to the root domain. Then all the sub-domains will get the session id from cookie and PHP can find the session using passed session id.
Useful Tips for Creating Secure PHP Applications
PHP is one of the most popular programming language for developing web projects. But like other scripting languages, PHP also has few security holes that can make our application insecure. In this tutorial, we will take a look at useful tips to help you avoid some common PHP security problems.