I know one can get a Bachelors degree online. Can one do the same with a PhD (I refer to fields which don't need specialized equipment like Math or CS, for example). 

At first glance, it should be easier since your doing almost independent work (you don't really need tests).

Are there such programs?