The assignment to $update_url is dead and can be removed.
The assignment to $loaded is dead and can be removed.
The assignment to $triedstr is dead and can be removed.