It's running on UKLinux's server, and localhost as the server name works with another script. This script does work, It's just that those error messages come up for no apparent reason.