PHP simple implementation of short URL (short-chain) Restore method (test available), PHP restore
In this paper, a simple way to achieve short URL restoration is described in PHP. Share to everyone for your reference, as follows:
Here to help the
The idea and Method (recommended) for php to generate short URLs and the implementation of using php to generate short URLs. The idea of generating a short URL: If you have restored the short URL, do you know what it looks like? For example:
1 Comparison of APIs for Google, Baidu, NetEase, and Sina short website servicesThe API interface of Baidu short website is completely open to the outside world. Users do not need to apply for the APPKEY of the open platform or use the OAuth
PHP short URL Super simple code
System environment:
Php,apache2,linux
To generate the PHP short URL operation:
Copy the code to index.php in a two-level directory with only 1 characters (such as U) as the folder name.
To add write permissions for
Php is a simple method for restoring short URLs (short URLs) (available for test) and restoring php. Php simply implements the short URL (short URL) restoration method (available for test). The example in this article describes how php simply
Using PHP to generate a short url scheme the normal url with parameters may be very long, especially if we need to print paper products such as enterprise brochure to print a long url, it is very ugly, in addition, few people will remember this
The idea of generating short URLs and the implementation of using PHP to generate short URLs.The idea of creating a short URL: If you restore a short URL, do you know what it looks like? Like what:Http://www.jbxue.com/sitejs-17300-1.htmlFor the
The idea of creating a short URL: If you restore a short URL, do you know what it looks like? Like what:Http://www.jbxue.com/sitejs-17300-1.htmlFor the above link, in addition to directly open, there is a way to open it, as follows:http://www. Jbxue.
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.