Yes I had tried all those below before posting.
It sounds like this is the only way to deal with authentication from what I see.
In windows it works fine from the browser to include name and pass in url.
In Linux it comes back and asks for the pw again.
I'd think the only difference would be in headers.
Is there any header info todo with authentication which come from the client which are 
not set by
doing the url name and pw?

Thanks,
Steve

--- Ognyan Bankov <[EMAIL PROTECTED]> wrote:
> "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
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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

Reply via email to