A few days ago, in order to enhance the SEO of this site, I switched 301 of all pages under another domain name: www.kanshule.com to www.jb51.net.
Since this site currently only has one blog, you can start with it.
The idea is very simple. Get the Domain Name of the current browser page. If it is the domain name that needs to be switched, replace the
In a complete url address passed by the variable, we need to obtain the domain name in the address. here we can use the parse_url function for processing. Of course, some users can use regular expressions to solve this problem, the following are two examples. In a complete url address passed by the variable, we need to obtain the domain name in the address. here we can use the parse_url function for process
right and both sides with parentheses. The "{" Before the code bracket is the specified bracket type and, if necessary, can also be "}", "[", or "("), as shown in Figure 3.
Figure 3
Understanding the above two domain switches, the complex relationship shown in Figure 1 is less mysterious. As long as the combination of the two domain switches, you c
expiration time
To get a collection of stations, write a cookie to each of the stations in turn by redirecting the polling, and finally redirect to the login source page
Logon authentication methods are as follows:
The method code for the a.com and B.Com in the skip-transliteration cookie is as follows:
///
6. Return to the Login source page a.com/home/index or B.com/home/index
At this point, a.com and B.Com already have cookies.
7.
As long as the space supports wildcard domain name resolution, there is no need for the server script language or DNS, you can use the front-end code to construct an unlimited second-level domain name:
// Global variableVaR curl = "http://www2.17389.com/" // the site or directory that redirects when processing failsVaR url = "17389"; // keyword of the top-level
Php obtains the code of the primary domain in the MAC address and URL of the NIC.
// Obtain the MAC address of the NIC
@ Exec ("ipconfig/all", $ array );
For ($ Tmpa; $ Tmpa
If (eregi ("Physical", $ array [$ Tmpa]) {
$ Mac = explode (":", $ array [$ Tmpa]);
Echo $ mac [1];
}
}
// Obtain the url primary
Recently, I often see someone ask how to query the domain name in ASP is registered, so write this component, the main principle is to the Gopher site whois server to send WHOIS request, because not too much time, so very simple, at present can only realize to cnnic query, And the returned information is not processed, if you want to use, clear in the ASP to deal with it yourself. Later if there is time will be added and the
Java EnumSet replaces bit domain code details, javaenumset details
This article focuses on the Content of replacing bit fields with EnumSet in Java.
Reading NotesTive Java Chinese Version 2nd
Bit domain notation allows the use of bit operations to effectively execute a set operation such as union and intersection. However, bitwise fields have all the shortcomings
This article mainly introduces functions for detecting ip addresses and domain names in php and js, so that you can detect ip addresses and domain names in programs. For more information, see
This article mainly introduces functions for detecting ip addresses and domain names in php and js, so that you can detect ip addresses and
Copy the Code code as follows:
Get the current domain name:
echo $_server[' server_name '];
Get the source URL, that is, click to the previous page URL of this page
echo $_server["Http_referer"];
$_server[' Request_uri '];//gets the suffix of the current domain name
$_server[' Http_host '];//get the current
Is it possible to get a first-level domain name code for each type of URL?
This post was last edited by Changjay on 2010-09-07 23:25:30
There are many URLs, like abc.abc.com, Abc.com/abc, www.abc.com.cn, abc.com.tw, www.abc.co.uk, WWW.ABC.COM.JP/ABC.PHP/ID=ABC (id= It can be long after ABC)
There are a lot of things that I hope can be omnipotent.
How do I get the first-level
Get some information about the current page address with ASP.Set current page full address is: Http://www.jb51.net/aaa/bbb.aspx?id=5name=kelli"/HTTP" is the protocol name"Www.jb51.net" is the domain name"AAA" is the station name."Bbb.aspx" is the page name (file name)"Id=5name=kelli" is a parameter"1" gets the full URL (protocol name + domain + site name + file name + parameter)The
Hichina whois (the interfaces used provide valid interfaces for hichina)Copy codeThe Code is as follows:Function whois_hichina ($ domain ){Preg_match ("| $ Whois [0] = str_replace ('note: as required by the Registry, expired domain names may be in the automatic renewal phase of the Registrar, the domain name expiration
Domain Name Query Code publication
Network Technology leader motto: Three people, it must have my teacher Yan. Http://www.ctohome.com
This code can be said to be very smart, I changed the little part to make it easier to use.
$moreinfolist = Array (//The connection method for storing WHOIS query host
' At ' = ' www.ripe.net/cgi-bin/whois?query= ',
' Au ' =
In the front-end, to solve the cross-domain time always seem so disgusting, what Jsonp Ah, Ajax ah, cors ah what, always feel is in the loopholes in the cross-domain, in fact, in PHP file only need to add a piece of code can cross the domain, the front-end you how to write or how to write, Post,get casually use:Header
The source code recently often see someone ask how to query the domain name in ASP is registered, so wrote this component, the main principle is to the Gopher site whois server to send WHOIS request, because not too much time, so very simple, at present can only realize to cnnic query, And the returned information is not processed, if you want to use, clear in the ASP to deal with it yourself. Later if ther
The source code recently often see someone ask how to query the domain name in ASP is registered, so wrote this component, the main principle is to the Gopher site whois server to send WHOIS request, because not too much time, so very simple, at present can only realize to cnnic query, And the returned information is not processed, if you want to use, clear in the ASP to deal with it yourself. Later if ther
The password modification function is not provided in Sharepoint. It is estimated that the user does not know which authentication method the user will use, ad or form?
The following users use ad verification. It is common to change the password. We make a webpart and write some background code,
Add a menu item where you are welcome to go to the page where you have deployed the webpart with the modified password.
# Region main
(JSON data), and the data returned is only JSON-formatted data without the callback function name, and the natural hint is malformed, so the asp.net MVC custom Jsonresult class is modified. Specifically how to write a custom Jsonresult class see: Customizing ASP.net MVC jsonresult serialization results,
The code is as follows:
Copy Code code as follows:
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.