BrowserEmulator 2.0.1
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.
This BrowserEmulator class with its methods fopen and file wraps the fsockopen calls and sends 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 = Off with these functions!
Features of BrowserEmulator:
- completely transparent wrapper for fsockopen
- PHP-like interfaces: BrowserEmulator::fopen (corresponds to fopen) and BrowserEmulator::file (corresponds to file)
- usable with all PHP file handling methods (fgets and so on)
- can send GET or POST requests
- custom header lines can be sent
- POST data can be sent
- Basic HTTP Authentication
- custom destination port numbers
- show last HTTP response
More popular Networking Tool
- PHP Cron Daemon 0.1 (4 years, 8 months 2 days ago)
- Firewall 1.0 (3 years, 1 month 10 days ago)
- CECID: CEnsorship CIrcumvention Device 1.0.1 (2 years, 8 months 15 days ago)
- Samba Web Client 1.0 (7 years, 7 months 22 days ago)
- FTP Sync 1.0 (3 years, 9 months 5 days ago)
Listing Files

browseremulator.class.php- 7.0 KB
- 01/17/2004 15:16:08

gpl.txt- 17.6 KB
- 03/25/2002 11:28:10
- FREE MySQL Cloud Database Super Simple, Zero-Management MySQL Cloud DB. Use It FREE!
- Pinterest clone Start your own pin board social network today. Get Pintastic and start your own pinterest clone network.
- MYRE Real Estate Software Professional Real Estate solutions by MYREPHP PROGRAMMING!
