Hello experts, Occasionally, with no apparent pattern, I get this error in my logs followed by: feof(): supplied argument is not a valid stream resource in ... it states it is coming from this piece of php code: $handle = fopen("http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendID=" . $ID, "rb"); while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); This code is part of a Myspace train script. I've cleaned up parts of the code, however I am trying to figure out what's going on here and why it seems to be doing this randomly. Of course, nothing is random, but I haven't figured out the pattern yet. When I google the error, I mostly get webpages that HAVE the same error, not much along the lines of troubleshooting. I figured I'd ask here while I continue to dig around.
It could just be that myspace is failing to serve the page. Once in a while I'll log into my myspace account and I'll either get some kind of intermediate page or an error. It looks like you're pulling the profile page... why not use the regular myspace.com/username url?