What is the equivalent of ASP.NET's WebRequest in php?
I think that would be fopen, which can retrieve data from files or remote URLs.
You could also look into using curl if you're interested in retrieving remote resources.