replace php file funcs with CI equivalents