最近到处查找php+xml的示例,今天忽然发现在phpinfo()竟然也使用了xml,而且写得还很好!
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./gd.files/filelist.xml">
<title>gd</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Administrator</o:Author>
<o:LastAuthor>Administrator</o:LastAuthor>
<o:Revision>1</o:Revision>
<o:TotalTime>1</o:TotalTime>
<o:Created>2001-11-22T05:48:00Z</o:Created>
<o:LastSaved>2001-11-22T05:49:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Lines>1</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:Version>9.2812</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:PunctuationKerning/>
<w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
<w:Compatibility>
<w:SpaceForUL/>
<w:BalanceSingleByteDoubleByteWidth/>
<w:DoNotLeaveBackslashAlone/>
<w:ULTrailSpace/>
<w:DoNotExpandShiftReturn/>
<w:AdjustLineHeightInTable/>
<w:UseFELayout/>
</w:Compatibility>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:黑体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimHei;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:1 135135232 16 0 262144 0;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@黑体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:1 135135232 16 0 262144 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:宋体;
mso-font-kerning:1.0pt;}
h1
{margin-right:0cm;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
mso-outline-level:1;
font-size:18.0pt;
font-family:Arial;
mso-font-kerning:18.0pt;
font-weight:bold;}
h2
{margin-right:0cm;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
mso-outline-level:2;
font-size:14.0pt;
font-family:Arial;
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
mso-text-animation:none;
text-decoration:none;
text-underline:none;
text-decoration:none;
text-line-through:none;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
mso-text-animation:none;
text-decoration:none;
text-underline:none;
text-decoration:none;
text-line-through:none;}
p
{margin-right:0cm;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0cm;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:宋体;
mso-bidi-font-family:"Times New Roman";}
address
{margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:宋体;
font-style:italic;}
pre
{margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
font-size:10.0pt;
font-family:黑体;
mso-hansi-font-family:"Courier New";
mso-bidi-font-family:"Courier New";}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1028"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=blue style='tab-interval:21.0pt;text-justify-trim:
punctuation'>
<div class=Section1 style='layout-grid:15.6pt'>
<h2 align=center style='text-align:center'><span lang=EN-US>gd<o:p></o:p></span></h2>
<div align=center>
<table border=0 cellspacing=1 cellpadding=0 width=600 bgcolor=black
style='width:450.0pt;mso-cellspacing:.7pt;background:black;mso-padding-alt:
2.25pt 2.25pt 2.25pt 2.25pt'>
<tr>
<td valign=top style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
Arial'>GD Support</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></p>
</td>
<td valign=top style='background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>enabled<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign=top style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
Arial'>GD Version</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></p>
</td>
<td valign=top style='background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>1.6.2
or higher<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign=top style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
Arial'>FreeType Support</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></p>
</td>
<td valign=top style='background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>enabled<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign=top style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
Arial'>FreeType Linkage</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></p>
</td>
<td valign=top style='background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>with
TTF library<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign=top style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
Arial'>JPG Support</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></p>
</td>
<td valign=top style='background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>enabled<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign=top style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
Arial'>PNG Support</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></p>
</td>
<td valign=top style='background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>enabled<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign=top style='background:#CCCCFF;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
Arial'>WBMP Support</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></p>
</td>
<td valign=top style='background:#CCCCCC;padding:2.25pt 2.25pt 2.25pt 2.25pt'>
<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>enabled<o:p></o:p></span></p>
</td>
</tr>
</table>
</div>
<p class=MsoNormal><span lang=EN-US><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
</div>
</body>
</html>
文章来源于领测软件测试网 https://www.ltesting.net/