"Steve B." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Nadim, > It works but not for sites with password window that pops up. I see. That is HTTP Basic Authentication You should use this line: $filename = 'http://someuser:[EMAIL PROTECTED]/'; instead of: $filename = "http://somesite.com?user=someuser&pwd=somepwd;
and source will look like: <?php // get contents of a file into a string $filename = 'http://someuser:[EMAIL PROTECTED]/'; $handle = fopen ($filename, "r"); $contents = fread ($handle, filesize ($filename)); fclose ($handle); ?> nadim's solution will look like this: $html = implode ('', file ('http://someuser:[EMAIL PROTECTED]/')); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php