An warning
-
An warning i am getting when i am opening a text file from my own website in Linux hosting Warning: file(http://iy.com/tata/y.txt) [<a href='function.file'>function.file</a>]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in <b>/home/iy/public_html/do.php</b>; can any one tell me how to solve it ?
-
An warning i am getting when i am opening a text file from my own website in Linux hosting Warning: file(http://iy.com/tata/y.txt) [<a href='function.file'>function.file</a>]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in <b>/home/iy/public_html/do.php</b>; can any one tell me how to solve it ?
Means a password is required to open files in that directory - or it could possible mean you havent set the right permissions on the file. If you do not have a "password protect directories" option on your hosting control panel look up ".htaccess" and ".htpasswd" files. Alternatively put it in a directory without pw protection.
-
An warning i am getting when i am opening a text file from my own website in Linux hosting Warning: file(http://iy.com/tata/y.txt) [<a href='function.file'>function.file</a>]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in <b>/home/iy/public_html/do.php</b>; can any one tell me how to solve it ?
And you should Google your errors. http://lmgtfy.com/?q=+401+Authorization+Required[^]
-
Means a password is required to open files in that directory - or it could possible mean you havent set the right permissions on the file. If you do not have a "password protect directories" option on your hosting control panel look up ".htaccess" and ".htpasswd" files. Alternatively put it in a directory without pw protection.
-
Thanks for your help brother directory is password protected can your tell me first line of do write user name and password in php for opening file.
-
And you should Google your errors. http://lmgtfy.com/?q=+401+Authorization+Required[^]