Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÎÞ·¨µ¼³öΪxml - PHP / »ù´¡±à³Ì

PHP code:

/**
* µ¼³öxmlÎļþ
*/
class XmlExport extends FileExport{

/**
* µ¼³öÎļþ·½·¨
*/
public function downFile($data){
header('content-Type: text/xml');
header('content-Disposition:attachment;filename='.$this->fileName);
header('Accept-Ranges:bytes');
header('Pragma:no-cache');
header('Expires:0');

if (count($data)<=0){
echo 'No Data !'.chr(13);
}

$content = '<?xml version="1.0" encoding="UTF-8" ?>'.chr(9).chr(13);
foreach ($data as $k => $v){
/**
* ÿÐеÄÊä³öÊý¾Ý
*/
$content .= chr(9).'<data>'.chr(13);
foreach($v as $kk => $vv){
$content .= chr(9).chr(9).'<'.$this->changeEncodeToGB2312($kk).'>'
.$this->changeEncodeToGB2312($vv).'<'
.$this->changeEncodeToGB2312($kk).'/>'.chr(13);

}
$content .= chr(9).'</data>'.chr(13);
}

echo $content;
}
}


ûÓе¯³öÏÂÔضԻ°¿ò£¬Ö±½Ó°ÑÄÚÈÝÏÔʾÔÚä¯ÀÀÆ÷ÀïÃæÁË£¬´ó¼Ò°ïæ¿´¿´
ÎÊÌâÕÒµ½ÁË£¬×Ô¼ºÌ«´ÖÐÄ¡£
PHP code



Code highlighting produced by Actipro CodeHighlighter (fre


Ïà¹ØÎÊ´ð£º

ÀûÓÃC#±àдtxtת»¯µ½xmlµÄ³ÌÐò

txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔ­Êý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......

php »ñÈ¡Ò³ÃæÄÚÈÝ - PHP / »ù´¡±à³Ì

Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......

java xmlÎÄÌâ - Java / Java SE

<?xml version="1.0" encoding="utf-8" ?> 
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......

PHP+MYSQLÊý¾Ý¼¯´¦Àí - PHP / »ù´¡±à³Ì

1¡¢ÊDz»ÊÇPHPÖÐÖ»ÄÜʹÓÃmysql_query("update user_aa set money=money2-".$bpanmm." where uid=".$userppp);¸üÐÂÊý¾Ý£¿£¿£¿
2¡¢PHP¸üÐÂmysql_fetch_row($res)Óëmysql_fetch_array($res)ÖеÄÊý¾ ......

ÐÂѧPHP Çë½ÌÎÊÌâ - PHP / »ù´¡±à³Ì

PHPÖÐ ÉùÃ÷±äÁ¿µÄʱºòÒ»¸ö$¸úÁ½¸ö$µÄÇø±ð
±ÈÈç˵
$var="333"; ±íʾ±äÁ¿ÃûΪ$varµÄ±äÁ¿µÄֵΪ333
$var="myvar";$$var="333";±íʾ±äÁ¿ÃûΪ$myvarµÄ±äÁ¿µÄֵΪ333
ÕâÑù˵Çå³þÁËÂ𣿠......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ