fix mode in php file