Tag Archives: php

How to display the page rank

If you are looking for a way to determine the Google page rank for a group of websites, here’s a simple solution:
Download the page rank script and test it on your web server.
Note that the server is forced to query one of Google’s servers each time you call the page rank function. Because page rank [...]

Web development security tips (PHP)

I’ve seen a lot of hacked websites lately (most because of SQL Injection). Almost all the security problems occur because us web developers assume that the users will act naturally and because we’re lazy to keep testing all the input data or wonder what if?. This is not a how to hack article, but it [...]

PHP: sending emails whenever an error occurs

Problem
PHP, by default, displays an error directly in the user’s browser. Something like this is common around the web:
Notice: Undefined variable: name in /abc/public_html/index.php on line 29
This is not so useful because if someone else caused this error you have no way of knowing about it and because potentially sensitive information about your PHP code [...]