PHP: link tracker