I just moved a project from localhost over to my remote server, and noticed that some of my scripts stopped working. Most importantly was one that relied upon file_get
file_get
If you are sure it is not a DNS issue, try restarting Apache. This solved it for me after 20 minutes of head scratching.