Obtain the domain name of a website and the domain name of the website.
Question requirements
"Randomly enter a URL
"Takes out the Domain Name of the website and displays it
Program Implementation
1 package cn. fury. test; 2
PHP domain name binding, PHP domain name binding
1. If it is an integrated environment, such as phpstudy, you can directly click another option menu in the tool-> site domain name management, fill in the corresponding
Today, the customer service Meimei asked me if the client nslookup a domain name prompts the following error:
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/11/67/wKioL1LOXWfyw6btAAX_tBS0rYE611.bmp "title =" 111.bmp "alt =" wKioL1LOXWfyw6btAAX_tBS0rYE611.bmp "/>
Let's take a look at the correct parsing process:
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/11/67/wKiom1LOXibD
/*** Intercept the specified string in a string, intercept the domain name, try to intercept the domain name of different URLs? * For example www.163.com,www.sohu.com.cn * string interception requires the location of the substring () * index, where you need to find the first " ." As the starting index for each
This afternoon I found a good thing on the Internet to provide free Domain Name Service: http://www.co.cc/
For ease of operation, after entering the website, first select the language: Chinese (simplified) in the top-right corner of the website)
First, you need to register an account. After successful registration, log on to the account.
Then, check whether the domai
http://www.test1.com/called with JS
http://www.test2.com/test.php
The read-write cookie function found in PHP does not work.
Setcookie ("TestCookie", $value, Time () +3600);
$phpcookies = $_cookie[' TestCookie ');
What's the problem, please?
Thank you!
Reply to discussion (solution)
Would you please enter $value to see if it is a null value?
Would you please enter $value to see if it is a null value?Is "output", typos ...
Cookie value cannot be accessed across domains
A cookie is bo
It's easy to write, it's just a function.
Function FormatUrl (yes)
If Mid (yes,5,1) Yes1 = Left (yes,3)
Yes2 = Right (Yes,cint (len (yes))-3)
FormatUrl = yes1 "." Yes2
Else
Formaturl=yes
End If
End Function
' Get the remote page binary source code
Function getboy (URL)
' On Error Resume Next
Set objxml = Server.CreateObject ("Microsoft.XMLHTTP")
With Objxml
. Open "Get", Url,false, "", "" "
. Send
Getboy =. Responsebody
End With
Getboy = Bytestobstr (Getboy, "GB2312")
Set Objxml = Nothing
End
Hosts bind domain name and IP, but access IP and domain name, out of the content is not the same
The HOSTS file is so bound
119.57.113.31 cloudtest.cnfol.com
The access IP appears to be such content
The output domain name is a
Apache. the 301 redirection in htaccess enables the website to be collected from a domain name without a www domain name: create a file redirect in the root directory. htaccess with Options + FollowSymlinksRewriteEngineonRewriteCond % {HTTP_HOST} ^ bysui. apache. 301 redirection in htaccess enables jump without a www
Get an IP address with a domain name or get a domain name with IP#include #include Convert network address to integer typestruct IN_ADDR IP; ip.s_addr=16885952; printf ("%s\n", Inet_ntoa (IP));Converting an integral type to a network addressLong Local; int port; local=123456; port=1024; printf ("Net:%d\n", htonl (local
yes. The yes array separated by commas is assigned to the new yes array.
For I = 0 to ubound (yes) 'traversal array loop startsUrl = "http://panda.www.net.cn/cgi-bin/Check.cgi? Domain = " Request. Form (" domain ") " ext = " yes (I)Wstr = getBoy (url) 'obtain the queried source codeIf instr (wstr, "unregistered domain name
Brief Review:Modifying Microsoft's urlrewrite can rewrite the URL, where the domain name needs to be rewritten to implement http://1234.abc.com/to http://www.abc.com/show.aspx? Id = 1234.Step: 1. Your domain name http://www.abc.com/is pan-resolved, and added a Host Header empty ing in IIS;2. Modify Microsoft's urlrewri
has not been how to pay attention to this blog jump problem, accidentally a friend said and my blog www.111cn.net and 111cn.net did not do 301, look at it is indeed so. Although the blog background set the main domain name for 111cn.net, but when Www.111cn.net visit is, and will not jump. So add the following code to the. htaccess, so that Apache can turn the other doma
Recently there is a demand, not the record of the domain name A, want to resolve to Hong Kong or domestic servers, but because of the non-filing, direct use of CDN analysis in the domestic visit will be very slowBut do not want direct directly to the IP, so found two ways to solve:Scenario One: Transfer to another server do 301 jump or ProxyThis doesn't have to be explained! The focus is on Programme IIScen
This article describes the Nginx implementation with the parameter directory domain name redirection two-level domain name method, there is a need to learn friends can refer to.The following code is a rule based on Nginx subdirectory 301 to another domain
I explained the second-level domain name on the IP address. when the second-level domain name does not allow him to access the address book of the main site, the second-level domain name is edited by liaohongchu from 2012-11-2116:
I explained the second-level domain name on the IP address. when the second-level domain name does not allow him to access the address book of the main site, the second-level domain name is edited by liaohongchu from 2012-11-2116:
Mvc4 domain name ing Area, mvc4 domain name ing area
Environment Description
The project uses mvc4 and has an area named demo. The access path is http: // localhost: 8098/demo. You need to map demo.abc.com to the change path.
Hosts Configuration
127.0.0.1 demo.abc.com
Core code
Public class AreaDomainRegistrationConte
I installed an Apache on the virtual machine, and after deploying a WordPress, I mapped the domain name on the local host hosts file.
such as 192.168.123.123 LI.YYY.ABC
After logging in to Li.yyy.abc/phpmyadmin, the browser still displays the domain name,
But after logging in li.yyy.abc/wordpress, the browser is 192.
Use the Hosts file for domain name resolution, how to log on to the domain name website after the browser address does not display IP
I installed an Apache on the virtual machine, and after deploying a WordPress, I mapped the domain name
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.