Archive for October, 2009
Microsoft Window’s Security Test Share and Enjoy:
PHP 5.3 and PHP6 will discontinue the use of magic_quotes for security reasons, and this means that your website may, or already have, break if you still rely on magic_quotes_gpc. Below is some code that will give you the same functionality as magic_quotes_gpc: < ?php function clear_magic_quotes() { if (get_magic_quotes_gpc()) { /* All these global [...]
I was working on a new PHP script when I needed to remove some characters from a random string. Generall I would use ereg, or even eregi (if the string has both upper and lower case. But since the string had some non-alphabetical characters, I had to check on the syntac in the PHP manual [...]
Recent Comments