New Errors?

I have had the same php scripts and websites working fine for years. Now for some reason I get the following errors and sometimes just a 500 error.

[function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 502 Bad Gateway in (hidden path for security purposes).

Does anyone know what the problem could be?

Any help would be greatly appreciated.

I also get this too:

Warning: file_get_contents( for security)

I don’t have a bt.php file???

I think that I figured it out.

There is a problem with some rss feeds right now.

The other script errors have been resolved too.

Actually it’s not fixed at all.

Here is the new error I get while trying to just run a program on one of my sites. This script has been running fine without any errors for months and now I get this:

Undefined index: HTTP_REFERER

I figured it out - I had someone inject some PHP code into some files.

There was nothing wrong with Dreamhost.