Hi,
I have a problem with reading a secured remote file.I mean for reading a file required username && password..
I tried it this way..
$hange = fopen('http://username:password@www.fragrancen ... 2.txt','rt');
But is showing
failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required
help regarding this problem would be great
Remote file accessing using fopen
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Remote file accessing using fopen
You might need to use cURL to deal with the authentication.
(#10850)