There are many quick reference manuals and quick reference guides for various languages and application software on the Internet. Unfortunately, when we need them, they are always hard to find, so I decided to spend some time collecting as much resources as possible and sharing them with you. Remember to recommend it.Index
CSS
HTML
Javascript
PHP
MySQL
Color/Fonts/SEO
CMS
Softwares
Browsers OS
Others/Miscellaneous
CSSCSS3 Cheat Sheet restart
CSS2 Visual Cheat Sheet labels
CSS Cheat S
If you can agree that the world is mainly composed of dummies, we should be able to accept the following series of less rigorous Inferences:
Things that are fashionable usually belong to the world of dummies; =>
Non-dummies will certainly do some uncommon things; =>
To break away from the dummies sequence, you ne
:
This
XML tags that do not contain text look like this:
There are more than one way to write something in XML. For example, the output of this tag is the same as that of the previous one:
You can also add attributes to the XML tag. For example, the
You can also use XML to encode special characters. For example, the symbol can be encoded like this:
If the XML file containing tags and attributes is formatted as in the example
Well-formatted, Which means that the mark is symmetric and
Web1.0 is a data-centric network, so I think Web is an Internet starting point. Let's take a look at some recent Web2.0 products to understand the above points.
Blog: users can build networks, publish new knowledge, and link other users to the content, which naturally organizes the content.
RSS: automatically distribute and review user-generated content
Podcasting: publishing/grading of personal videos/audios
SNS: links between blog + people
Wiki: You
. google's downloadable API kit contains a manual on how to use it, along with sample Java and. net code. flickr provides a wealth of APIs, as well as code samples. you'll find documentation and more for Amazon's APIs here; Yahoo's is here.
Even if you're not a code jockey, you can add Google or Amazon to your site. simply copy a dozen lines of HTML code to add a Google search box to your home page. selling Amazon products on your site for up to a 10 percent commission is nearly as easy. you'll
:
There are more than one way to write something in XML. For example, the output of this tag is the same as that of the previous one:
You can also add attributes to the XML tag. For example
Tag contains first and last attributes:
You can also use XML to encode special characters. For example, the symbol can be encoded like this:
If the XML file containing tags and attributes is formatted as in the example, the format is good, which means that the tags are symmetri
("/\
(. *?) \Preg_match_all ("/\
(. *?) \Echo ($title [1][0]. "-". $author [1][0]. "-". $publisher [1][0]. " \ n ");
}
/*I never recommend reading XML with regular expressions, but sometimes it's the best way to be compatible because regular expression functions are always available. Do not use regular expressions to read XML directly from the user, because there is no control over the format or structure of such XML. XML from the user should always be read with a DO
($books as $book)
{
$authors = $book->getelementsbytagname ("author");
$author = $authors->item (0)->nodevalue;
$publishers = $book->getelementsbytagname ("publisher");
$publisher = $publishers->item (0)->nodevalue;
$titles = $book->getelementsbytagname ("title");
$title = $titles->item (0)->nodevalue;
echo "$title-$author-$publisher \ n";
}
?>
The script first creates a new DOMDocument object and loads the book XML into the object using the Load method. The script then uses the Getelementsby
work for the machine. This violates the nature of laziness. You can see the success of Google. Google has a page rank technology that uses the relationship between webpages for sorting results, and uses the judgment of Web Page producers in disguise. Think about the number of Web Page creators, which is much smaller than the number of pure viewers. However, Google, with this innovation, has used part of the power of Web Page makers and has pushed it to the top of the Internet.
Therefore, the n
;getelementsbytagname ("book");
foreach ($books as $book)
{
$authors = $book->getelementsbytagname ("author");
$author = $authors->item (0)->nodevalue;
$publishers = $book->getelementsbytagname ("publisher");
$publisher = $publishers->item (0)->nodevalue;
$titles = $book->getelementsbytagname ("title");
$title = $titles->item (0)->nodevalue;
echo "$title-$author-$publisher \ n";
}
?>
The script first creates a new DOMDocument object and loads the book XML into the o
light conditions, but also automatically select the appropriate exposure combination.22. superfocal LengthBecause the rear depth of the lens is relatively large, it is said that the distance for clear imaging after focus is the superfocal length. A dummies camera generally uses the superfocal length, and uses the short focal lens to clearly imaging the scenes after a certain distance, saving focus, generally, low-end
If XHTML and CSS are object-oriented .. The sun should have risen from the north. However, everything should look at the problem with the idea of OO, And we can barely pull together. In fact, some people proposed OO-style as early as a few years ago, but they cannot find it. So how OO? As we all know, CSS can be used as an example:. G_G {* xxxxxx *}. We can use it like XHTML and CSS to be object-oriented .. The sun should have risen from the north. However, everything should look at the problem
in DOMReading XML is only part of the equation. How do you write XML? The best way to write XML is to use the DOM. Listing 5 shows how the DOM constructs the book XML file.Listing 5. Writing book XML with DOM$books = Array ();$books [] = Array (' Title ' = ' PHP Hacks ',' Author ' = ' Jack Herrington ',' publisher ' = ' O ' Reilly ');$books [] = Array (' Title ' = ' Podcasting Hacks ',' Author ' = ' Jack Herrington ',' publisher ' = ' O ' Reilly ');$
, agree to the live video of the Zhizhi dashboard, and publicize it on the website.4. The total prize amount is 1 million.
Alumni of Chuanzhi podcast: Powerful and confident people will never miss a good job! Never care about your past! If you believe in your own strength, you will be confident that the hero will not ask the source. You should be lucky and proud to have participated in the training of the famous brand Chuanzhi podcast, stand up and tell the world the success story in a frank man
the above points.Blog: Users can build networks, publish new knowledge, and link other users to the content, which naturally organizes the content.RSS: automatically distribute and review user-generated contentPodcasting: Publishing/grading of personal videos/audiosSNS: links between blog + peopleWIKI: you can build an encyclopedia together.From the perspective of knowledge production, the task of WEB1.0 is to put the human knowledge that has not been put on the Internet through the power of co
= Fread ($f, 4096)) {$xml. = $data;}
Fclose ($f);
Preg_match_all ("/\foreach ($bookblocks [1] as $block) {
Preg_match_all ("/\Preg_match_all ("/\Preg_match_all ("/\Echo ($title [1][0]. "-". $author [1][0]. "-". $publisher [1][0]. " \ n ");
}
/*
I never recommend reading XML with regular expressions, but sometimes it is the best way to be compatible, because regular expression functions are always available. Do not read XML directly from the user with a regular expression, becaus
user, because the format or structure of such XML cannot be controlled. You should always use the DOM library or the SAX Parser to read the XML from the user.--------------------------------------------------------------------------------Back to TopWrite XML using DOMReading XML is only part of the formula. How to write XML? The best way to write XML is to use DOM. Listing 5 shows how to build a library XML file by using DOM.Listing 5. Using DOM to write XMLCopy codeThe Code is as follows:$ Boo
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.