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 a domain name"AAA" is the station roll call"Bbb.aspx" is the name of the page (file name)"Id=5name=kelli" is a parameter"1" To get the full URL (protocol name + domain name + site names + filename + parameters)
Copy Code
This article describes how to use XMLHTTP to create a domain name query system code case, which has some reference value. let's take a look at it.
How to use XMLHTTP to create a domain name query system code case
Domain name query system:
a null value without directly making an error.The following describes how to use the MyCache class:
// Introduce the definition include ('mycache. php '); // instantiate $ mc = new MyCache ('ABC'); // you must have a domain. // set the value $ mc-> set ('word ', 'Hello World', 900); // obtain the value echo $ mc-> get ('word'); // delete the value $ mc-> delete ('word '); echo $ mc-> get ('word'); $ mc-> set ('counter', 1, 290000); echo $ mc-> get ('
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 domain name for all URLs in PHP? Get results for abc.com,abc.com.cn, abc.co.uk?
The situation is more complicated. I use the following code, roughly can be judged,
= T_parm. Remove (0, 1);
T_strurlpath = "http://" + t_url. Authority + T_url. Absolutepath;
Return GetResponse (T_strurlpath, T_parm, Pi_method);
}
public enum Enummethod
{
POST,
Get
}
Now that jquery Ajax supports Cross-domain, here's an example where we can process the above into JSON data
The Jquery.getjson also supports the JSONP data method invocation.
Sample call code for client Jquery
Today I would like to introduce you two JS to get the current domain name
The code is as follows
Copy Code
Get the current domain name1, Window.location.host;2, Document.domain;Get current page addressurl = window.location.href;
Example
The
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)string url=Request.Url.ToString (); URL= http://"2" gets the site name + page name + param
Get the NIC MAC address
@exec ("Ipconfig/all", $array);
for ($Tmpa; $Tmpa
if (eregi ("Physical", $array [$Tmpa])) {
$mac =explode (":", $array [$Tmpa]);
echo $mac [1];
}
}
Get the URL master domain
by http://bbs.it-home.org
function GetDomain ($url) {
$pattern = "/[\w-]+\. (COM|NET|ORG|GOV|CC|BIZ|INFO|CN) (\. (CN|HK)) */";
Preg_match ($pattern, $url, $matches);
if (count ($matches) > 0
First, I rename the following Enterprise Domain and enterprise outline in the Enterprise Domain of the Project Server.Code:
Task cost enterprise cost 1 (enterprise cost 1)Task mark 2 Enterprise mark 2Task construction period enterprise construction period 1Task date enterprise date 1Task digital enterprise number 3Task text 2 Enterprise text 2Task enterprise outline
first Preferential information
Share a 2013-year latest GoDaddy domain name renewal Discount code
Discount Amount: $8.17/yr
Godaddy. com domain name Registration discount code: cjc799b033
After testing can have, support Alipay.
Second preferential information
Share two godaddy
(function () {for (var c=location.host,a= "", b=0;bAdd this piece of code to the top of the JS file that does not allow other domain names to load, the encryption is actually used with a JS compression tool can be. The top code I'm using is Google's Closure Compiler. JS file to add the above code, only allow www.test.c
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
Php ip address format detection function
The code is as follows:Function checkIp ($ ip ){$ Ip = str_replace ("", "", $ ip );$ Ip = strtolower ($ ip );$ Ip = str_replace ("
the/98/me and NT4.0, Suitemask is always zero. )[/Align] [Align=left]3example [/align][align=left] The following examples tell you how to install in some versions of Windows and check the service pack level on multiple OS editions. [/Align] [Code] [Code]functionInitializesetup:boolean;varversion:twindowsversion; s:string;beginGetwindowsversionex (Version); //do not accept installation in the Home edition o
+----------------------------------+Put all the files under the program folder. Upload to the location you want to install. Then open for example the following URLHTTP//Your domain/program folder/index.phpAssuming that the first installation, the system will take the initiative to jump to the installation interface, you just need to fill in the relevant information as required to successfully complete the installation. It is ready to use after install
Title: IOS8 Troubleshoot getting location coordinate information error (Error Domain=kclerrordomain code=0)A few days ago solved the problem of unable to use the address location service on the iOS8, recently debugging on the simulator found to obtain location coordinates information will be error message: Didfailwitherror:error domain=kclerrordomain
Today I would like to introduce you two JS to get the current domain name
The code is as followsGet the current domain name
1, Window.location.host;2, Document.domain;
Get current page address
url = window.location.href;
Example
The code is as follows
Add:
Get current domai
An error occurred using the Avfoundation Library on iOS for video recording:
Error domain=avfoundationerrordomain code=-11823 "cannot store" userinfo=0x1782f8a00 {nsunderlyingerror=0x17064f4e0 "" Operation couldn ' t be completed. (Osstatus error-12672.) ", Averrorrecordingsuccessfullyfinishedkey=false, nslocalizedrecoverysuggestion= please retry the storage. , nslocalizeddescription= cannot store},video.m
EF Code-first provides a collection of dataannotation attributes that can be used on a domain class or its properties, and the Dataannotation attribute overrides the default EF conventions.Dataannotation exists in two namespaces:System.ComponentModel.DataAnnotations and System.ComponentModel.DataAnnotations.SchemaNote: DataAnnotations only provides a subset of the configuration options, all of the configura
How to use PHP according to the URL domain name of the route to determine jump?
The following code is collected here:
1, the problem requires:
According to the route of the separate jump
Jump to different pages based on input domain name
PS: If you do not use the URL forwarding in the domain name resolution!
Exa
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.