The following code can get the domain name from the URL
Example: http://bkjia.com/live/q.html
Get bkjia.com
The following is the referenced content:function Get_domain ($url) {$pattern = "/[\w-]+\. (COM|NET|ORG|GOV|CC|BIZ|INFO|CN) (\. (CN|HK)) */";Preg_match ($pattern, $url, $matches);if (count ($matches) > 0) {return $matches [0];}else{$rs = Parse_url ($url);$main _url = $rs ["Host"];if (!strcmp (Long2ip (sprintf ("%u", Ip2long ($main
requirements on the Internet for reference only: http://www.bacysoft.cn/thread-58-1-1.html
------ Solution --------------------
You know too much ....
Discussion
Use PHP to encrypt the words that will be filtered, and decrypt them in JavaScript on the client!
There are similar requirements on the Internet for reference only: http://www.bacysoft.cn/thread-58-1-1.html
------ Solution --------------------
Obviously, he certainly does not know the number of words in the default table t
behaviors27 2.8 Popularity of external links on external link pages under the same domain name28 2.6 keyword image keyword optimization29 2.6 manually assigned weight of website quality Google2.6 Special characteristics of website quality domain names (. edu. gov, etc)31 2.5 website quality new page generation rate32 2.5 Creation and update time of external links33 2.5 particularity of external link website domain name34 2.4 PR value of external link
Look at Baidu's optimization guide, we will see how to Baidu for SEO tutorial website optimization bar,
First, domain name registration
Baidu clearly said: Use what form of domain name suffix to Baidu Web search has no impact; before we always thought, gov,com these domain name weight will be higher than NET,CN, there is a ranking. But Baidu has said, is no impact, so we go for friendship links, hair outside the chain, no need to pay attention to wh
value is True
*******************************************/
function Setattachments ($inAttachments) {
if (strlen (Trim ($inAttachments)) > 0) {
$this->mailattachments = $inAttachments;
return true; }
return false; }
/*********************************
function Checkemail ($inAddress): This function has been called before, mainly
To check the legality of an email address
*****************************************/
function Checkemail ($inAddress) {
Return (Ereg
been replaced with the local address of the server, and the picture is saved to its own server.
Copy CodeThe code is as follows:
The following functions and classes are found on the network.
Get the domain name from the URL
function Get_domain ($url) {
$pattern = "/[\w-]+\. (COM|NET|ORG|GOV|CC|BIZ|INFO|CN) (\. (CN|HK)) */";
Preg_match ($pattern, $url, $matches);
if (count ($matches) > 0) {
return $matches [0];
}else{
$rs = Parse_url ($url);
$main _u
can view or set the various properties of the cookie. The following summary describes these methods:
Getcomment/setcomment
Gets/sets the comment for the cookie.
Getdomain/setdomain
Gets/sets the domain that the cookie applies to. Generally, cookies are returned only to servers that have exactly the same name as the server that sent it. Use this method to instruct the browser to return cookies to other servers in the same domain. Note the field must start with a point (for example,. sitename.c
*****************************************/
function Checkemail ($inAddress) {
Return (Ereg ("^[^@]+@" ([a-za-z0-9-]+.) + ([a-za-z0-9-]{2}|net|com|gov|mil|org|edu|int) $ ", $inAddress));
}
/*************************************************
The function loadtemplate ($inFileLocation, $inHash, $inFormat) reads the temporary file and
Replace the useless information parameter $infilelocation the directory used to locate the file
$i
How to query whois information in PHP
In this paper, we explain how to query whois information in PHP. Share to everyone for your reference. Specific as follows:
Use PHP to query the list of websites that query whois information
?
123456789101112131415161718192021st2223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
function Whois_query ($domain) { Fix the domain name: $domain = Strtolower (Trim ($domain)); $domain =
Php method of querying whois information, Phpwhois information method
In this paper, we explain how to query whois information in PHP. Share to everyone for your reference. Specific as follows:
Use PHP to query the list of websites that query whois information
function Whois_query ($domain) {//fix the domain name: $domain = Strtolower (Trim ($domain)); $domain = preg_replace ('/^http:\/\//i ', ' ', $domain); $domain = preg_replace ('/^www\./i ', ' ', $domain); $domain = explode ('/', $domain
This is a php Regular Expression for getting all links in the article content. This is a php Regular Expression for getting all links in the article content.
Script ec (2); script
$ Str = "";
The Code is as follows:
$ Reg = "[^" '] *) | (?
[^ S>] +) [sS] *?> ";
// The following example shows how to obtain the regular expression of the domain name in the content.
The Code is as follows:
Function get_domain ($ url ){$ Pat
In Seo, we often need to evaluate the quality of a page. So from the SEO perspective, which factors will affect the search evaluation of a page?
The following are some of the relevant factors we have obtained through various channels and try to provide some quantitative scoring schemes for each factor for your reference in actual work:
Keywords (keyword)Keyword in Title: + 3Keyword in URL: + 3Number of keywords displayed on the page: + 3Keywords in tag H1/H2: + 3Keyword at the beginning of t
Java Program Writing specificationNaming conventions1. General concept1. Use full English descriptors as far as possible2. Adoption of terminology applicable to related fields3, the use of mixed case to make the name readable4, to minimize the use of abbreviations, but if used, must conform to the entire project of the unified definition5. Avoid using long names (less than 15 letters for normal selection)6, avoid the use of similar names, or just the case of different names7. Avoid using undersc
, the properties are still not restrictive, and further use of conditional judgment statements to restrict the cases see MyEclipse-->practise-->setperson**************** Definition Packages: Package name package is the declaration of the keyword must be the first non-annotative statement in the Java source file, And a source file can have only one package declaration statement, the package needs to correspond to the file system structure. Therefore, when you name a package, you adhere to the fol
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.