ÍÂѪÁË,Ìá¸öPHPдXMLµÄÎÊÌâ - PHP / ¿ªÔ´×ÊÔ´
´úÂë:
<?php
$im=$_POST['upPicName'];
$it=$_POST['upPicTitle'];
$pa=$_POST['upPicAlbum'];
$pt=$_POST['upPicThumb'];
//echo $im.$it.$pa.$pt;
$doc = new DOMDocument();
$doc ->formatOutput = true;
$doc->load('pic.xml');
$project=$doc->documentElement->getElementsByTagName('medias');
//$root = $doc->createElement('media');
//$doc->appendChild($root);
/**Ìí¼ÓͼƬµÄÃû×Ö
$root_im = $doc->createAttribute('imgname');
$root->appendChild($root_im);
$root_im_text=$doc->createTextNode($im);
$root_im->appendChild($root_im_text);
//½áÊø
//Ìí¼Ó±êÌâ
$root_it = $doc -> createAttribute('title');
$root->appendChild($root_it);
$root_it_text=$doc->createTextNode($it);
$root_it->appendChild($root_it_text);
//½áÊø
//Ìí¼Óר¼Ãû³Æ
$root_pa=$doc->createAttribute('section');
$root->appendChild($root_pa);
$root_pa_text=$doc->createTextNode($pa);
$root_pa->appendChild($root_pa_text);
//½áÊø
//ÊÇ·ñΪ±êÌâ
$root_pt=$doc->createAttribute('thumb');
$root->appendChild($root_pt);
$root_pt_text=$doc->createTextNode($pt[0]);
$root_pt->appendChild($root_pt_text);
**///½áÊø
$doc->saveXML('pic.xml');
?>
XML:
<?xml version="1.0" encoding="utf
Ïà¹ØÎÊ´ð£º
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
mssql_select_db("f1",mssql_connect("localhost","sa","sa"));
mssql_select_db("f2",mssql_connect("192.168.0.1","sa","sa") ......
ÔÚfirefoxä¯ÀÀÆ÷ÏÂÕý³£µÇ½£¬µ«ÔÚIE ä¯ÀÀÆ÷ÏÂÎÞ·¨µÇ½£¬Ã¿´Î¶¼»áÖØÐÂÉú³ÉÒ»¸ösession,ÔÀ´µÄÄÚÈݻᶪʧ¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£Ôõô»ØÊÂ......
¾ßÌåÇé¿ö£¿²Â²â¿ÉÄÜÊÇÄã±¾»úIEµÄcookie±»½ûÓÃÁË°É£¬¿ÉÒÔ¿´¿´
cookie Æ ......
PHPÖÐ ÉùÃ÷±äÁ¿µÄʱºòÒ»¸ö$¸úÁ½¸ö$µÄÇø±ð
±ÈÈç˵
$var="333"; ±íʾ±äÁ¿ÃûΪ$varµÄ±äÁ¿µÄֵΪ333
$var="myvar";$$var="333";±íʾ±äÁ¿ÃûΪ$myvarµÄ±äÁ¿µÄֵΪ333
ÕâÑù˵Çå³þÁËÂð£¿
......