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 this
This article mainly introduces the code for generating a php short URL (similar to Weibo short URL ), for more information, see the next article. This article mainly introduces the code generated for a php short URL (similar to a Weibo s
Code generated for a php short URL (similar to a Weibo short URL ). Share the code generated for a php short URL. Copy the code as follows :! The DOCTYPEhtmlhtmlheadmetacharsetutf-8titleurlShorttitleheadbodyformactionurlShort.p sh
This article mainly introduces the code generated for a php short URL (similar to a Weibo short URL). For more information, see
This article mainly introduces the code generated for a php short URL (similar to a Weibo short URL).
Php generates code for a short URL, similar to a microblog short URL
UrlShort-php generate short URL _ bbs.it-home.org _ script School provides
2. Generate the php short
Share the code generated for a php short URL.Copy codeThe Code is as follows:Header ("Content-Type: text/html; charset = UTF-8 ");Function base62 ($ x ){$ Show = '';While ($ x> 0 ){$ S = $ x % 62;If ($ s> 35 ){$ S = chr ($ s + 61 );} Else if ($ s> 5 $ S $ S = chr ($ s + 55 );} Www.jbxue.com$ Show. = $ s;$ X = floor ($ x/62 );}Return $ show;}// Generate a
urlshort-php Generate short URLs _bbs.it-home.org_ Scripting Academy offers
Copy Code2, generate code for PHP short URLs.
Header ("Content-type:text/html;charset=utf-8");
function base62 ($x) {
$show = ";
while ($x >0) {
$s = $x% 62;
if
In recent years, the use of two-dimensional code more and more wind, the author recently on hand also encountered a need to use two-dimensional code to scan the site's live, so the study of this set of mechanisms, and code to achieve the entire process, and then we chat about two-dimensional code login and those things
Original: Java Swing development of short and concise Tetris game source code download, only 300 lines of codeSource code: Http://www.zuidaima.com/share/1550463495146496.htmJava Swing development of short and short Tetris game source cod
Public platform development 4-Example of long chain connection to short chain interface call (including source code), 4-including source code
Public platform development-access_token acquisition and application (including source code)Author: Meng xianglei-public platform development example tutorial
Convert a long link
Ideas:
1) will be long Web site MD5 generated 32-bit signature string, divided into 4 paragraphs, 8 bytes per paragraph;
2 to the four-segment loop, take 8 bytes, consider him as 16-string and 0X3FFFFFFF (30-bit 1) and operation, that is, more than 30-bit ignore processing;
3 The 30 bits are divided into 6 segments, each 5 digit number is taken as the index of the alphabet to obtain the specific characters, and then the 6-bit string is obtained.
4) The total MD5 string can obtain 4 6-bit strings
Provides a variety of official and user-released code examples. For code reference, you are welcome to exchange and learn to send a short piece of code to top and display the QR code.
CSS style implementation
. Left-float {position: fixed; right: 40px; bottom: 60px; width: 4
The code is as follows
Copy Code
Sina App_keyDefine (' Sina_appkey ', ' 31641035 '); function Curlquery ($url) {Set additional HTTP Headers$addHead = Array ("Content-type:application/json"); Initialize curl, of course, you can also use Fsockopen instead$curl _obj = Curl_init (); Set up URLscurl_setopt ($curl _obj, Curlopt_url, $url); Additional head contentcurl_setopt ($curl _obj, Curlopt_h
Our web page verification when the phone, to send SMS verification, Huaian whipped egg Short message verification of the source code verification process is how. Here's a look at this.
"Huaian whipped Egg Web Edition-source Dock file Summary"
first, upstream interface:
1. Definition: Receive the data provided by the home (SP), write to our database The disease returns the value according to the deman
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.