access htaccess folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samvb
    New Member
    • Oct 2006
    • 228

    access htaccess folder

    Hi,
    I have a folder within my root website (cant move it out cos of restrictions). I have placed htaccess file in it which works just fine. It displays the usual log in box when someone tries to access it. But my script needs to access the folder in a hidden way. is there nyway, i can pass the login info the htaccess files and log in to the folder without havin to display the login window?
  • prabirchoudhury
    New Member
    • May 2009
    • 162

    #2
    hey...

    when you are in FTP logged then right click on the folder and then go to properties or permission and give all three checked for owner .. that mighr solve your problem..

    Comment

    • samvb
      New Member
      • Oct 2006
      • 228

      #3
      can't i pass the username and password from a script?

      Comment

      • dlite922
        Recognized Expert Top Contributor
        • Dec 2007
        • 1586

        #4
        Originally posted by samvb
        can't i pass the username and password from a script?
        I think you may have confused what prab. was saying. .htaccess is for apache webserver, which is used when you access the site through the web browser, in simple terms.

        Your host will most likely have a ftp server as well, allowing you a more "wholesome" access to your files. PHP can connect to an ftp server. For an example and how to do that, see the manual here:



        You can pass your username and password there and have access to that file, read it, change it, and even save it if you wanted to.

        Does that make sense?





        Dan

        Comment

        Working...