note 36034 added to function.fsockopen

From: Date: Tue, 23 Sep 2003 15:24:53 +0000
Subject: note 36034 added to function.fsockopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-56982@lists.php.net to get a copy of this message
To emulate a web browser with PHP using socket functions, there is a very good class to do this: http://sourceforge.net/projects/snoopy/ Some of its features: * easily fetch the contents of a web page * easily fetch the text from a web page (strip html tags) * easily fetch the the links from a web page (add a filter for "mailto:" links and you can easily fetch e-mail addresses). * supports proxy hosts * supports basic user/pass authentication * supports setting user_agent, referer, cookies and header content * supports browser redirects, and controlled depth of redirects * expands fetched links to fully qualified URLs (default) * easily submit form data and retrieve the results * supports SSL and frames ---- Manual Page -- http://www.php.net/manual/en/function.fsockopen.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36034 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36034&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36034&report=yes

« previous php.notes (#56982) next »