fixed script for update php