Results 1 to 2 of 2

Thread: subdirectories for passwords creates coding problem

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default subdirectories for passwords creates coding problem

    1) Script Title:
    DD htaccess


    2) Script URL (on DD):
    http://www.tools.dynamicdrive.com/password/

    3) Describe problem:
    I'm posting streaming video...and I've used htaccess to create a password for the HTML page where users can watch the videos. Now, here's the thing, the video is for a limited audience, so I've created several HTML pages, each one with its own password.

    The way I've done this is by creating sub-folders, each one with their own .htaccess and .htpsswd files. And each HTML page points to the same video information. But here's the problem: this works in IE but NOT in Firefox. I know that IE is more forgiving for problematic code, can someone tell me what my error is in the below that it's not working in Firefox? Thank you in advance! (Perhaps this is a question for the JW Flash folks...but the trouble began b/c I needed to create subdirectories for my passwords =] )

    =============================
    Directory structure:
    MAIN Directory: MySite.com

    SUB directory (in the below): B directory (where the below html page can be found)

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Phlegmbot's page</title>
    <script type="text/javascript" src="//MySite.com/swfobject.js"></script>
    </head>

    <body>
    TEXT HERE
    <p>

    <div id="player">This text will be replaced</div>

    <script type="text/javascript">
    var so = new SWFObject('//MySite.com/player.swf','mpl','700','450','9');
    so.addParam('allowscriptaccess','always');
    so.addParam('allowfullscreen','true');
    so.addParam('flashvars','&author=Phlegmbot&description=&captions=&file=//MySite.com.com/mrss.xml&backcolor=999999&frontcolor=0000FF&lightcolor=FFFF33&playlistsize=142&playlist=right&autostart=true');
    so.write('player');
    </script></center>
    </body>
    </html>

  2. #2
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem solved

    I needed to add HTTP:

    that's all. 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
  •