Many usually do this for scrapper websites. However I have different purpose.

Say I have a domain name. Call it domaina.com and domainb.com

I want domainb.com to fill the space for domaina.com in area where there for 404 error.

For example, if domaina.com/anonexistencefile.htm exist, I want it to display


Moreover, I want all reference to domainb.com to go to domaina.com

Both domaina.com and domainb.com are mine. So no stealing or copyright issue here.

Is there a php command to get the content of a url and put it in a string that we can then echo?