Giter Site home page Giter Site logo

link_shortner's Introduction

Link_shortner

A simple URL shortner which lets a web user shortern a weblink for easy probagation over protocols that place limits to lenght of user input

Test your short link using the URL string: http://localhost/link_shortner/index.php?shortlink

Would like to see how collaborators can improve the app.

  • The entropy of the short link can be improved on.

  • Given the current entropy of 6, and a character range of a-z (26 lower case), A-Z (26 upper case) and 0-1 (10 numbers), we have C(62,6) non-unique combinations i.e. C(n,r) of characters. That's 61,474,519 possible short links we can host.

  • Increasing this entropy by even a factor of 1 or 2 (i.e. from 6 to 7 or 8) adds another 491,796,152 or 3,381,098,545 to this possibility with the largest value possibility of 62 characters. Essentially, the higher the entropy, the higher the number of possible combinations and corresponding number of short links we can create. however note that the number of possibilities is maximum at 31 (half the data set) and begins to reduce after this entropy value:

    Possibilities entropy

    450883717216034179 30

    465428353255261088 31

    450883717216034179 32

    409894288378212890 33

  • Application can be improved to automatically increase entropy based on the current entropy utilization and count of short links related to URL's domain or some other metric.

  • you can increase the entropy by increasing the value of passed to shortner_ID $dataset[1] = $modify_URL -> shortfier_ID(6,$mysqli); // short link length

-short link URL can be improved to not require the "/index.php?". I hope someone can help find a way to achieve this and improve on the cleanness of the final short link.

UPDATE:

  • Currently in the process of porting this project into a nodejs app and adding several updates including recommendations for the current version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.