! Which of the following experts can provide code or related links for mutual conversion between long and short websites ~

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.