"Steve B." <[EMAIL PROTECTED]> wrote in message
> How would you get PHP to download a file such as a web page and put it in
// get contents of a file into a string
$filename = "http://somesite.com?user=someuser&pwd=somepwd";
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
$contents is disired string variable.
> What keywords would relate to this (besides php download)
> I need a user to be able to put in a name and pass and have PHP go to a
> The site can take the user/pass in the url so I do not need a form submit.
> Then I need the site contents to be in a php variable.
> Any tips on parsing html out of it would be great.
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php