Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default lolz.url [A short URL service]

    I've spent an hour or two building a MySQL based Short URL service. When I was new to PHP, I made a really bad one, that made a directory with an index.php file in it. The problem with this was that it made bad permissions so I couldn't delete what I'd done

    So, this morning I decided I'd made a quick version. It's easy to use, and requires four file edits to customise it to any server. Firstly, you need to edit the config.inc.php file, adding your MySQL details (it makes the table itself when you run install.php). Then you need to replace the HTML and links in add.php and go.php with your own HTML and links, and then finally you need to edit the .htaccess file so that it will go to the right place. Then to make it work, you just make an index file with a form. Make a text field called "url" and set the form action to add.php! That's it! It creates nice URLs, such as http://url.lolz.co.uk/1234

    Demo: http://url.lolz.co.uk/
    Download: http://url.lolz.co.uk/89743



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Well done!

  3. #3
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    It doesnt check to see if ive actually put a URL in

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  4. #4
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Th0m4s View Post
    It doesnt check to see if ive actually put a URL in
    Oops, I didn't think about that



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  5. #5
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Nice one Tim. Maybe you could check up to see if that URL has been shortend before and if so return with its old short url saving on mysql space.

  6. #6
    Join Date
    Dec 2006
    Location
    None of your business!
    Posts
    2,492
    Tokens
    50

    Latest Awards:

    Default

    Well done, its a great piece of clever thinking and a nice script. + rep.

  7. #7
    Join Date
    Apr 2007
    Posts
    50
    Tokens
    0

    Default

    Good one i'll be using it ++rep

  8. #8
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    wont work pour moi

    k it duz but u cant put www. ;P
    Last edited by :Edzy; 16-04-2007 at 08:14 AM.
    EDTALKING


  9. #9
    Join Date
    Dec 2006
    Posts
    521
    Tokens
    0

    Default

    You can put invalid urls in it, it doesnt check if they are valid.

  10. #10
    Join Date
    Nov 2005
    Location
    Australia
    Posts
    1,086
    Tokens
    111

    Latest Awards:

    Default

    Nice one +rep. I've seen a script around when it does it automatically.


Page 1 of 2 12 LastLast

Posting Permissions

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