phpÖÐxml×·¼ÓÎÊÌâ
ÎÒÉú³ÉµÄxmlÊÇÕâÑùµÄ
<?xml version="1.0"?>
<message>
<title>dd </title>
<content>ee </content>
</message>
дÁËÕâÑùµÄÒ»¸öº¯Êý
xml('33','j33');
xml('dd','ee');
function xml($m_title,$m_content){
$doc = new DOMDocument('1.0');
$doc->loadXML('x.xml');
$doc->formatOutput = true;
$root = $doc->createElement('message');
$root = $doc->appendChild($root);
$title = $doc->createElement('title');
$title = $root->appendChild($title);
$title_text = $doc->createTextNode($m_title);
$title_text = $title->appendChild($title_text);
$content=$doc->createElement('content');
$content=$root->appendChild($content);
$text = $doc->createTextNode($m_content);
$text = $content->appendChild($text);
echo $doc->saveXML();
echo $doc->save('x.xml');
}
?>
¿ÉÊÇÎÒÏëÿ´Îµ÷ÓÃËüµÄʱºò£¬Êý¾Ý¿ÉÒÔÒ»Ö±ÍùÀïÃæ×·¼Ó£¬¶øÏÖÔÚȷʵÐÂÊý¾ÝÌæ»»ÁËÔÀ´µÄ
¹Ø×¢Ò»ÏÂ
ºÇºÇ~~~˼·ÓÐÎÊÌâ¡£¸ù¾ÝÄãµÄfunctionÿ´Î»áÖØÐÂÉú³ÉMESSAGE,²¢ÇÒ¸²¸ÇÔÀ´µÄÊý¾Ý¡£Èç¹ûÏëʵÏÖ×·¼ÓÊý¾Ý²¢ÇÒ²»¸²¸ÇÔÀ´±êÇ©ÄÚÈÝ£¬Ö÷±êǩдÔÚfunctionÍâ¡£²»Ã÷°×µØ·½ÔÙ¸úÌù˵Ã÷¡£¡£¡£¡£
1¡¢¶ÁÈ¡XMLÎļþÓà $doc->load('x
Ïà¹ØÎÊ´ð£º
¶Ôphp²»ÊǺÜÁ˽â дÁ˸ö¼òµ¥µÄÀý×Ó
ÏÖÓÃc#µ÷ÓÃphpдµÄ webservice£¨soap WSDL£©iis6.0+php5.2.8
webserviceÈçÏÂ
<?php
class WebService
{
public function Logout()
{
//header('Co ......
¸÷λ´óÏÀ
ÇóÒ»¶Îphp´úÂë
¿ÉÒÔʵÏÖÒÔϹ¦ÄÜ
Õë¶Ô²»Í¬µÄä¯ÀÀÆ÷ÏÔʾ²»Í¬µÄͼƬ
¾ÍÊÇÓÐÒ»ÕÅͼƬ£¬Ö»Ïë¸øie6Óû§¿´µ½
Èç¹ûie7¡¢chrome¡¢firefoxÓû§ä¯ÀÀÔòÏÔʾÁíÍâÒ»ÕÅͼƬ  ......
ÔÚ¹úÍâµÄ¿Õ¼ä£¬ÆäËüµÄphpÕ¾µã¶¼Õý³££¬¿ÉÖ»ÓÐ×î½ü½¨µÄÕâ¸öÕ¾µã£¬Ö»ÒªÒ»ä¯ÀÀphpÎļþ¾Í³öÏÖÏÂÔØÌáʾ£¬ÏÂÔØÏÂÀ´µÄÎļþ¶¼ÊÇ´øÓÐphpÔ´Â룬¸÷λ·¹ýµÄ£¬°ï°ïÎÒ£¬¿´¿´Ê²Ã´ÔÒò£¬ÏÈлÁË¡£
¿Õ¼ä²»Ö§³Ö¡£
»òÕßÄãµÄÕ˺ÅûÓп ......
ÇëÎÊÏÂÄܲ»ÄÜÔÙwindows϶¨ÆÚÇå¿ÕmysqlÒ»¸ö±íÖеÄÈ«²¿Êý¾Ý£¬ÓÃPHPʵÏÖ£¡
лл¸÷λÁË
¾Í±ÈÈçÒ»¸öÐÇÆÚÇå¿ÕÒ»´Î
±ÈÈçÿ¸öÐÇÆÚÁùÁãµãÇå¿ÕÒ»´Î£¡
ллÁË
¼Æ»®ÈÎÎñ...php....sql...truncate....OK
Äã¾ÍÕâ½ÓÔÚҳà ......
´úÂëÈçÏ£º
function uc_get_user($username, $isuid=0) {
$return = call_user_func(UC_API_FUNC, 'user', 'get_user', array('username'=>$username, 'isuid'=>$isuid));
return UC_CONNECT == 'mysql' ......