|
Let PHP pretend to be a web browser.
Some web sites (like IMDb) prevent external scripts from parsing their contents by denying request without a user-agent string. Though this can be circumvented by manually sending the necessary headers, this is usually too complicated. These functions (be_fopen and be_file) wrap the fsockopen calls and send all the necessary headers before returning a file handle usable with any PHP function. As a side-effect, you may be able to break the restrictions of allow_url_fopen with these functions!
Site owner: Put the rating form on your site!
Listing wrong or need to be updated? Modify it.
|