Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 51

Thread: Kick-out script...

  1. #41
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Linco12 was a spammer whose post was deleted. (The post included a quote from your post.)
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  2. #42
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    okay, well, now that that's sorted out.

    Nicholas: this is a decent htaccess article: http://www.javascriptkit.com/howto/htaccess3.shtml

    What have you tried so far? Do you have any specific questions?

  3. #43
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    I'm not sure what to put on the first line in htaccess...
    I don't know what to put after "AuthUserFile".
    EDIT: And "AuthName".

  4. #44
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    the "AuthUserFile" is the path to the .htpasswd file, realtive to the server. For example, your website root (www.whatever.com) is somewhere on your server's HD, like "/home/users/yourname/whatever_com/public_html/". Aside from getting the path correct, this:
    Code:
    AuthUserFile /usr/local/you/safedir/.htpasswd
    AuthGroupFile /dev/null
    AuthName EnterPassword
    AuthType Basic
    
    require valid-user
    should work fine.

    Your .htpasswd file should be a list of usernames/password hashes, separated by colons:
    Code:
    {username}:{password hash}
    {otheruser}:{differenthash}
    DD has a tool for creating the password hash, and there's more instructions there too.

  5. #45
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    WooHoo!
    403
    Permission denied.
    (A.K.A. it works)
    Thanks for the help everyone

  6. #46
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    ...and I assume you can log in successfully as well?

  7. #47
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    Lol yeah.
    Now I'm having MySQL troubles...
    I'm setting up PHP Fusion on my site but it can't connect to both of my MySQL accounts.
    Ex:
    Database hostname: myhostname.sql**.freemysql.net
    Username: nsstudios
    Password: ******
    Database Name: nsstudios (or) phpfusion
    Table prefix: (left alone) fusion_

    I click 'next' and it says it cannot connect to it. What do I do?

  8. #48
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    I'd have to see your code - one connection can't connect to both databases, but you can make two connections. Additionally, every mysql function will have to specify which connection it wants to use, or things will get mixed up.

    Why don't you start a new thread in the mysql forum?

  9. #49
    Join Date
    Sep 2010
    Location
    Hi Stalker.
    Posts
    148
    Thanks
    16
    Thanked 3 Times in 3 Posts

    Default

    Nevermind got it working, had to use a MySQL database on my account.
    progress: 81%
    Link: http://kapleenmusic.webfreehosting.n...files/news.php
    Trying to find out how to change the title.. :/ lol

  10. #50
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Line 3, I think of your code, in the head of the document.

    Code:
    <title>PHP-Fusion Powered Website - News</title>
    Corrections to my coding/thoughts welcome.

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
  •