add php connect method