Re: [PHP-DB] GET a html page via php....
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. The way to open a URL (without) password and read the contents: $contents = file ("http://"); 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://:@"); And ofcourse this returns the same kind of array. -- * 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]
RE: [PHP-DB] GET a html page via php....
If it uses basic authentication, you should be able to do: Fopen("http://username:[EMAIL PROTECTED]","r";) Ryan Marrs [EMAIL PROTECTED] Web Applications Developer / IT Sandler & Travis Trade Advisory Services, Inc. www.strtrade.com 248-474-7200 x 183 -Original Message- From: Eduardo Vela [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 8:49 AM To: [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. -Mensaje original- De: * R&zE: [mailto:[EMAIL PROTECTED]] Enviado el: Martes, 28 de Agosto de 2001 06:31 a.m. Para: Koutsogiannopoulos Karolos; PHP Database Mailinglist Asunto: Re: [PHP-DB] GET a html page via php From: Koutsogiannopoulos Karolos <[EMAIL PROTECTED]> Date: Tue, Aug 28, 2001 at 02:15:56PM +0300 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP-DB] GET a html page via php > Hello averyone... i have a question to make and any help is more than > welcome... > > Is there a way to connect with php to a foreign site and retrieve an > html page and then to extract a specific value from this page > > Many thanks in advance... Take a look at the functions as: fopen() (http://www.php.net/manual/en/function.fopen.php) Eg: $fp = fopen ("http://www.php.net/";, "r"); With that function, and what you'll find there you'ld be able to achieve what you want. -- * 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] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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] -- 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]
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. -Mensaje original- De: * R&zE: [mailto:[EMAIL PROTECTED]] Enviado el: Martes, 28 de Agosto de 2001 06:31 a.m. Para: Koutsogiannopoulos Karolos; PHP Database Mailinglist Asunto: Re: [PHP-DB] GET a html page via php From: Koutsogiannopoulos Karolos <[EMAIL PROTECTED]> Date: Tue, Aug 28, 2001 at 02:15:56PM +0300 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP-DB] GET a html page via php > Hello averyone... i have a question to make and any help is more than > welcome... > > Is there a way to connect with php to a foreign site and retrieve an > html page and then to extract a specific value from this page > > Many thanks in advance... Take a look at the functions as: fopen() (http://www.php.net/manual/en/function.fopen.php) Eg: $fp = fopen ("http://www.php.net/";, "r"); With that function, and what you'll find there you'ld be able to achieve what you want. -- * 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] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- 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]
Re: [PHP-DB] GET a html page via php....
From: Koutsogiannopoulos Karolos <[EMAIL PROTECTED]> Date: Tue, Aug 28, 2001 at 02:15:56PM +0300 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP-DB] GET a html page via php > Hello averyone... i have a question to make and any help is more than > welcome... > > Is there a way to connect with php to a foreign site and retrieve an > html page and then to extract a specific value from this page > > Many thanks in advance... Take a look at the functions as: fopen() (http://www.php.net/manual/en/function.fopen.php) Eg: $fp = fopen ("http://www.php.net/";, "r"); With that function, and what you'll find there you'ld be able to achieve what you want. -- * 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]