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
A class for retrieving URL information implemented in php to obtain URL information
Using this class, you can obtain the following URL information:
-Host
-Path
-Statuscode (eg. 404,200 ,...)
-HTTP Version
-Server
-Content Type
-Date
-The whole
Http://www.imkevinyang.com/2009/08/%E8%AF%A6%E8%A7%A3javascript%E4%B8%AD%E7%9A%84url%E7%BC%96%E8%A7%A3%E7%A0%81.htmlSummaryIn this paper, we mainly introduce the related problems of URI codec, and explain in detail which characters in URL coding
[Original address] ASP. net mvc Framework (Part 2): URL Routing[Original article publication date] Monday, December 03,200 AM
Last month, I published the first article in my series of posts, which will discuss the new ASP. NET MVC framework we are
Class for obtaining URL Information
Using this class, you can obtain the following URL Information:
-Host-Path-Statuscode (eg. 404,200 ,...)-HTTP Version-Server-Content Type-Date-The whole header string of the URLCopy codeThe Code is as follows: /**
The class that gets the URL information
Using this class, you can obtain the following information about the URL:
-Host
-Path
-Statuscode (eg. 404,200, ...)
-HTTP Version
-Server
-Content Type
-Date
-the whole header string of the URL
Copy
I. URL routing1.1 Comparison to HTTP requests via browserWhen a client makes a request to an ASP. NET Web site, it can find the appropriate HttpHandler to handle the Web page through R even Tony Lid, the approximate processIf HttpHandler is handled
class to get URL informationUsing this class, you can get the following information for the URL:-Host-Path-Statuscode (eg. 404,200, ...)-HTTP Version-Server-Content Type-Date-the whole header string of the URL Copy CodeThe code is as follows:/***
Php converts the url address to the complete a tag link code (php adds a tag for the url address ). The content to be extracted is as follows: Copy the code as follows: ahrefbaidu. combaidu. coma is the first A tag, and ahrefblog.baidu.com is the
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.