Starting from scratch is indeed a tall order, and probably not possible if you didn't study it before coming here. Many students spend some time as a "research student" before starting with the PhD, so that would be the best time to get a head start.