[omahaphpusers] Re: Questoin: fopen and basic authentication

  • From: Jay Hannah <jay@xxxxxxxx>
  • To: omahaphpusers <omahaphpusers@xxxxxxxxxxxxx>
  • Date: Thu, 26 Jun 2003 13:12:58 -0500 (CDT)

On Thu, 26 Jun 2003, Matt Payne wrote:
> At http://php.net/fopen there's a comment that says a URL can be opened with
> basic authentication like this: 
> fopen("http://user:pass@xxxxxxxxxxxxxx/mypage.php";);

That's the correct syntax. I just tested it on an Apache BasicAuth
protection here and it worked fine.

Ponder,

j




Other related posts: