php to control links