<Original message>
From: Eduardo Vela <[EMAIL PROTECTED]>
Date: Tue, Aug 28, 2001 at 07:48:38AM -0500
Message-ID: <000701c12fbf$c32ba140$[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to