Re: [PHP-WIN] Getting HTML Content as a variable From: Leo G. Divingracia III (ldivinag <email protected>)
Date: 02/12/03

1. use SESSIONS to pass authentication between pages.

2. register_globals ON or OFF? ;)

php <email protected> wrote:
> Hi,
>
> I've been directed to use file() or implode() to get the html content of a web page, like this: $html = implode ('', file ('http://192.168.1.100/PHP/index.php'));
>
> 1 ) How do I pass authentication to websites that require username & password? In Cold Fusion the CFHTTP tag allows you to pass USERNAME="myusername" PASSWORD="mypassword", there must be an equivalent parameter in PHP.
>
> 2) When I output the content of $html, which is the web page stored as a variable, the images are not there. Again, in Cold Fusion the CFHTTP tag takes care of this when you specify RESOLVEURL="YES", and I'm guessing there is a way in PHP to store the web page WITH images intact?
>
> thanks! ph_Greg
>

-- 
Leo G. Divinagracia III
ldivinag <email protected>

zzzzz

-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php