Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. An warning

An warning

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
phpcomlinuxhostingsecurity
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    udch
    wrote on last edited by
    #1

    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 ?

    M 2 Replies Last reply
    0
    • U udch

      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 ?

      M Offline
      M Offline
      Marc Firth
      wrote on last edited by
      #2

      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.

      Neonlight

      U 1 Reply Last reply
      0
      • U udch

        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 ?

        M Offline
        M Offline
        Marc Firth
        wrote on last edited by
        #3

        And you should Google your errors. http://lmgtfy.com/?q=+401+Authorization+Required[^]

        Neonlight

        U 1 Reply Last reply
        0
        • M Marc Firth

          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.

          Neonlight

          U Offline
          U Offline
          udch
          wrote on last edited by
          #4

          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.

          M 1 Reply Last reply
          0
          • U udch

            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.

            M Offline
            M Offline
            Marc Firth
            wrote on last edited by
            #5

            http://lmgtfy.com/?q=htpasswd[^]

            Neonlight

            1 Reply Last reply
            0
            • M Marc Firth

              And you should Google your errors. http://lmgtfy.com/?q=+401+Authorization+Required[^]

              Neonlight

              U Offline
              U Offline
              udch
              wrote on last edited by
              #6

              Thanks for all your help brother.You are really a nice hearted human.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups