$handle = fopen("/path/to/file.ext", "r"); $handle = fopen("http://www.somedomain.com/path/to/file.ext", "r");