PHP Classes

php url shortener: how to use php url shortener

Recommend this page to a friend!
  All requests RSS feed  >  php url shortener  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

php url shortener

Edit

Picture of julio vazquez by julio vazquez - 7 years ago (2018-03-13)

how to use php url shortener

This request is clear and relevant.
This request is not clear or is not relevant.

+2

can you explain how to use it php url shortener

Ask clarification

1 Recommendation

PHP URL Shortener Class: Shorten and expand URLs stored in MySQL database

This class can shorten and expand URLs stored in MySQL database.

It can take a URL and create a shorter version that is stored in a MySQL database using MySQLi.

The class can also expand existing short URLs looking up on the links database table.

It can also can track the number of clicks shortened URLs when these are expanded and the user browser is redirected to the expanded URL.

The class file itself is the a script that will perform the link shortening or expansion. It relies on .htaccess configuration to handle the shortened URL requests.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Alexandre Sinício by Alexandre Sinício package author package author Reputation 55 - 7 years ago (2018-03-16) Comment

Maybe this class can help you understand how URL shortening works.

Basically, it creates an index of real-world-links and associates an alias to them. So very.long.url/way/too/long/to/remember' becomesshort.link/abc`. The two URLs are mapped on the backend and stored somewhere. When user tries to access the short link, the PHP server retrieves the real-world URL and redirects user to it.


Recommend package
: 
: