Hua Ke Xiao Tao, http://www.cnblogs.com/hust-ghtao/There are two ways to identify a host: by host name or IP address. People, of course, like the host names that are easy to remember, while routers prefer fixed-length, hierarchical IP addresses. In order to compromise, a directory service that can host name-to-IP address translation is required. This is the DNS of the domain Name System.DNS has two meanings: (1) A distributed database implemented by a hierarchical DNS server, and (2) an applicat
: "Index of". Etc "passwd (install password to establish page index).
Index.of Passlist.txt (The page containing the passlist.txt is loaded as plain text).
Index.of.secret (except for websites that contain confidential documents,. gov type) can also be used: index.of.private
Filetype:xls username Password Email (find the XLS file containing the columns of username and password in the table).
"# PhpMyAdmin Mysql-dump" filetype:txt (lists PHP-ba
DNS (protocal):D omain name Server domain namespacewww.baidu.com there is a (.) behind. Dot is the root name server, there are 13 globalDNS query: There are two types of recursion and iterationRecursion: A first-level upward query back down aIterations: Polling queries return aFqdn:full qualified domain name fully qualified domainname/full name DomainOrganization domain:. com. org. net. mil. edu. gov, etc. some organizational managementCountry domain:
address for this domain name. BIND : Bekerleyinternat Name Domain; ISC (www.isc.org)DnsTCP: connection-oriented protocol;udp:user Datagram Protocol , no connection protocolLocal name resolution configuration file: Hosts/etc/hosts%windows%/system32/drivers/etc/hostsThe format is as follows:1.1.1.1www.magedu.com1.2.2.2www.apple.comDnsname SpaceInternet DNS domain name on the hierarchy, like a tree upside down. The root domain is that an organization named InterNIC is responsible for dividing the
Top-level domain, level two domain name(1) Top-level domain name (domain name) such as. com,. NET,. edu,. gov,. cn, etc.(2) The entire DNS system is composed of many domain names, each domain name and subdivide more domains, the DNS domain constitutes a hierarchical tree structure from top to bottom are root domain name, top-level domain name, level two domain name ... Finally, the host name(3) www.sina.com.cn--where www.com.cn is the domain name of t
The Internet uses IP addresses for communication, but generally for human and easy memory, defines a set of domain names and a mechanism for mapping domain names to IP addresses. The Domain name collection forms a hierarchy that can be represented as a tree, the nodes of the tree represent the domain name, and the path to the root forms the domain name. Subtree is called subdomain, the first level domain name includes com/edu/gov/org/net and so on, th
current FILE
?>
Example 1
The code is as follows:
Function getUrlRoot ($ url ){
# Add the header and tail
$ Url = $ url ."/";
# Determining domain names
Preg_match ("/(\ w *):\/\/)? \ W *\.? ([\ W |-] * \. (com.cn | net.cn | gov.cn | org.cn | com | net | cn | org | asia | tel | mobi | me | TV | biz | cc | name | info ))
\\// ", $ Url, $ ohurl );
# Determining IP addresses
If ($ ohurl [3] = ''){
Preg_match ("/(\ d + \.) {3} \ d +) \ //", $ url, $ ohip );
Return $ ohip [1];
}
Return $ ohurl [3];
$ _ SERVER ["HTTP_REFERER"];$ _ SERVER ['request _ URI ']; // Obtain the suffix of the current domain name$ _ SERVER ['http _ host']; // Obtain the current domain nameDirname (_ FILE _); // Obtain the physical path of the current FILEDirname (_ FILE _). "/../"; // Obtain the upper-level physical path of the current FILE?>
Example 1
The code is as follows:
Function getUrlRoot ($ url ){# Add the header and tail$ Url = $ url ."/";# Determining domain namesPreg_match ("/(\ w *):\/\/)? \ W *\.? (
*******************************************/
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 ("^[^@]+@" ([a
lacus EU nulla bibendum ID euismod urna sodales. "; $compressed = gzcompress ($string); echo "Original size:". Strlen ($string). " \ n "; /* Prints Original size:800 */echo "Compressed size:". Strlen ($compressed). " \ n "; /* Prints COMPRessed size:418 *///Getting it back $original = gzuncompress ($compressed);
9. Use PHP for whois checking
function Whois_query ($domain) {//fix the domain name: $domain = Strtolower (Trim ($domain)); $domain = preg_replace ('/^http:\/\//i ', ' '
on your server, // read the image file $ Gimg = new GetImage (); $ Gimg-> source = $ img; $ Gimg-> save_to = '. /data/temp/'; $ FILE = $ Gimg-> download (); // move the image to a local location // save it to the album to get the image saved $ img_path = pic_save ($ FILE, 0 ,''); // replace the text path $ message = str_replace ($ img, $ img_path, $ message );}}
... At this time, the image in $ message has been replaced with the local address of your server, and the image is saved to your serve
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.