Help! Who can transfer code or related links for long and short websites ~~ Please kindly advise me to write code or related links for mutual conversion between long and short websites in php, and do not use database-like function encryption for mutual conversion. thank you for your attention. & nbsp; ^ & nbsp; ^ Help! Who can transfer code or related links for long and short websites ~~
Could you please give me a code or related link for mutual transfer of long and short websites?
Written in php
Do not use databases
Similar to function encryption
Here, I would like to thank you for sharing your dear friends ^ long and short Web sites:
------ Solution --------------------
Go to the interfaces of google or Baidu
------ Solution --------------------
Short URL, which is controlled by others, you can use the API long URL for query.
For example, bitly.com
It's API documentation in http://dev.bitly.com/links.html
------ Solution --------------------
The code you wrote above has a problem, and we don't see where dwz is used.
------ Solution --------------------
Mutual transfer of long and short URLs
Long to short, short to long is not reversible
I don't think it is a one-to-one ing. it cannot be implemented without third-party storage mappings.
------ Solution --------------------
Reference:
Mutual transfer of long and short URLs
Long to short, short to long is not reversible
I don't think it is a one-to-one ing. it cannot be implemented without third-party storage mappings.
Third-party storage is not required, unless you apply for a domain name, and then perform a database comparison, a column of Long addresses, and a column of short addresses. you need to query the database when necessary, however, almost all domain names with a short URL cannot be applied for now.