Fix php to register