Re: fsockopen or fopen

From: Date: Fri, 17 Nov 2000 02:54:58 +0000
Subject: Re: fsockopen or fopen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25853@lists.php.net to get a copy of this message
On Thu, 16 Nov 2000, Chuck Barnett wrote: > I am trying to open a file on another webserver do I use fsockopen or just fopen. I've > tried following the php manual, but I just can't get it right :/ > > I want to read an html file as a string then pull a string from it using eregi. > > Thanks. > > Chuck > Just use fopen(). fsockopen() is only necessary if reading from non-HTTP and non-FTP servers (e.g., whois). -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#25853) next »