[omahaphpusers] Questoin: fopen and basic authentication

  • From: Matt Payne <Payne@xxxxxxxxxxxxx>
  • To: omahaphpusers <omahaphpusers@xxxxxxxxxxxxx>
  • Date: Thu, 26 Jun 2003 11:55:38 -0500

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";);

Alas, it doesn't work for me.   How can a URL be opened, when the URL is
protected by basic authentication?

-- 
Matt Payne, Payne@xxxxxxxxxxxxx                                    932 1779
                                   \|/
                                  (o o)
------------------------------oOo--(_)--oOo--------------------------------
                         Slow down to go faster.


Other related posts: