Re: GET a html page via php....

From: Date: Tue, 28 Aug 2001 13:05:57 +0000
Subject: Re: GET a html page via php....
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-11892@lists.php.net to get a copy of this message
<Original message> From: Eduardo Vela <eduardovela@yahoo.com> Date: Tue, Aug 28, 2001 at 07:48:38AM -0500 Message-ID: <000701c12fbf$c32ba140$76150082@intra.nafin.gob.mx> Subject: RE: [PHP-DB] GET a html page via php.... > I am also interested in this matter... > > Is there a way to open a file in a site which require usename and password? > > thks. </Original message> <Reply> The way to open a URL (without) password and read the contents: $contents = file ("http://<URL>"); This returns an array ($contents) with the contents. If you want to open a URL _with_ username and password and read the contents: $contents = file ("http://<username>:<password>@<URL>"); And ofcourse this returns the same kind of array. </Reply> -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.db (#11892) next »