Re: fsockopen or fopen

From: Date: Fri, 17 Nov 2000 02:52:24 +0000
Subject: Re: fsockopen or fopen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25851@lists.php.net to get a copy of this message
Either will work -- in their own way (but is is not neccesarily the easiest). You may want to try this: $string = implode('', file('http://web.server/the.file.html')); That page will then exist in the string variable $string. -jeremy brand http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more --------------------------------------------------------------------- We cannot do everything at once, but we can do something at once. -- Calvin Coolidge On Thu, 16 Nov 2000, Chuck Barnett wrote: > Date: Thu, 16 Nov 2000 20:50:31 -0600 > From: Chuck Barnett <xobyte@bellsouth.net> > To: PHP General List <php-general@lists.php.net> > Subject: [PHP] fsockopen or fopen > > 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 >

« previous php.general (#25851) next »