SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    form passes an htaccess password protected directory

    with javascript can you use a form to pass through an htaccess password protected directory?

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    not without using php, or making the user aware of using an activex control using javascript. Any way your best to use php for this.

  3. #3
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i've been told this cannot be done with php.

  4. #4
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm, that surprises me as I thought I saw something about this, but I never read it properly and I cannot remember where I saw it either?

    sry not much help there

  5. #5
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Technically yes

    well yes.
    you'd have to use a form of remote scripting and a WSH invocation to enable the parsing.
    I take it you mean <u>parse</u> through a clientside htaccess directory.
    Otherwise you're into the realms of SS languages (perl, mason, php, asp, cfm, cobol, c++ [with handlers]) doing it and reporting the results.

    if you ARE doing it clientside, then you'd have to initiate and filesystem environment, test for file existance and name/size and then perhaps send it back to the server via a form automatically.

    Obviously this is a big "no, no" but i'm sure if you're using it for unsafe / unauthorised actions then you won't be able to get your activeX controls signed and you'll be prompting users if they want to let you go through their hard disk.

    There are ways around this (using embedded classid's which switch spontaneously on spawning) but i'm not really going to explain to you how to write THAT

    Thanks
    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  6. #6
    SitePoint Wizard geiger's Avatar
    Join Date
    Jul 2001
    Posts
    2,459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    haha. it's not THAAAAAAAAAAAAAAAT important
    thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •