Replaced the PHP script for New Link with a Shell script now.

Reasons: timeout issues and unreliability of PHP. PHP and I will never become friends.