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

php½ÓÊÜxmlºÍ·¢ËÍ(post)xml

 
½ÓÊÕxml:
$xml = file_get_contents('php://input');
 
·¢ËÍ(post):
$xml_data = <xml>...</xml>";
$url = http://dest_url;
$header[] = "Content-type: text/xml";//¶¨Òåcontent-typeΪxml
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data);
$response = curl_exec($ch);
if(curl_errno($ch))
{
    print curl_error($ch);
}
curl_close($ch);
 
»òÕߣº
$fp = fsockopen($server, 80);
fputs($fp, "POST $path HTTP/1.0\r\n");
fputs($fp, "Host: $server\r\n");
fputs($fp, "Content-Type: text/xml\r\n");
fputs($fp, "Content-Length: $contentLength\r\n");
fputs($fp, "Connection: close\r\n");
fputs($fp, "\r\n"); // all headers sent
fputs($fp, $xml_data);
$result = '';
while (!feof($fp)) {
$result .= fgets($fp, 128);
}
return $result;


Ïà¹ØÎĵµ£º

PHPÂëÅ©½ø»¯Ê·6

1.PHP±à³ÌÄÜÁ¦
2.MysqlÄÜÁ¦
A.Á˽⣺֪µÀʹÓÃPHPÁ´½ÓÊý¾Ý¿â£»¶®µÃһЩ¼òµ¥µÄSQL;½¨Á¢Ò»Ð©¼òµ¥µÄË÷Òý£»¶®µÃÓù¤¾ß¼òµ¥²Ù×÷Ò»ÏÂÊý¾Ý¿â£¨Ôöɾ¸Ä²éÊý¾Ý±í½á¹¹£©¡£
B.ÊìϤ£º¶®µÃÔÚ¿ª·¢Ó¦ÓÃÉÏÉè¼ÆÊý¾Ý¿â£¬½¨Á¢Ò»Ð©ÓÐЧµÄË÷Òý£¬ÓÃexplain·ÖÎöSQLÐÔÄÜ£¬Ñ¹Á¦²âÊԵȵȡ£
C.ºÜÊìϤ£ºÉîÈëÁ˽âÊý¾Ý¿âË÷Òý£¬´æ´¢ÒýÇæÔ­ÀíÒÔ¼°ÔËÐлúÖÆ£ ......

PHP±äÁ¿ºÍ³£Á¿»ù´¡Ñ§Ï°

 
ÓйرäÁ¿µÄ´«µØÖ·¸³Öµ
PHP 3 ÖУ¬±äÁ¿×ÜÊÇ´«Öµ¸³Öµ¡£PHP 4
ÌṩÁËÁíÍâÒ»ÖÖ·½Ê½¸ø±äÁ¿¸³Öµ£º´«µØÖ·¸³Öµ¡£Ê¹Óô«µØÖ·¸³Öµ£¬¼´¼òµ¥µØ×·¼ÓÒ»¸ö£¨&£©·ûºÅµ½½«Òª¸³ÖµµÄ±äÁ¿Ç°£¨Ô´±äÁ¿£©¡£Öйú×Ôѧ±à³ÌÍø£¬www.zxbc.cn

ÕâÒâζ×ÅеıäÁ¿¼òµ¥µÄÒýÓÃÁËԭʼ±äÁ¿,¸Ä¶¯ÐµıäÁ¿½«Ó°Ï쵽ԭʼ±äÁ¿£¬·´Ö®ÒàÈ»¡£
<?p ......

PHPÍøÕ¾¿ª·¢·½°¸£¨¿ª·¢ÐÂÈ˱ضÁ£©

 Ò»¡¢¿ª·¢³ÉÔ±
a)ÏîÄ¿Ö÷¹Ü
b)Ò³ÃæÃÀ¹¤
c)Ò³Ãæ¿ª·¢
d)·þÎñ¶Ë³ÌÐò¿ª·¢
e)ϵͳÓëÊý¾Ý¹ÜÀí
f)²âÊÔÓë°æ±¾¿ØÖÆ
¶þ¡¢ ÍøÕ¾×鿪·¢¼òÃ÷Á÷³Ì
Èý¡¢ ¿ª·¢¹¤¾ßÓë»·¾³
a)·þÎñÆ÷ÅäÖÃ
i. WEB·þÎñÆ÷£º FreeBSD6.1+Apache2.0+PHP5.0£¬SVN°æ±¾¿ØÖÆ·þÎñ(½ö²âÊÔ»ú)¡£
ii.Êý¾Ý¿â·þÎñÆ÷£º WIN2003 server+SQL server 2000+MySQL5.0 ......

WindowsÏÂÈÃPHP³ÌÐò×Ô¶¯Ö´ÐеÄ˼·

Ö»ÊÇ˼·,»¹Ã»ÑéÖ¤. ÓÃWindowsµÄ¼Æ»®ÈÎÎñÿ¸ôÒ»¸öСʱÔËÐÐÒ»¸öphp½Å±¾. ¸Ãphp½Å±¾»á½«°ë¸öСʱºòÒªÖ´ÐеÄPHP´úÂëдÈëÒ»¸ö¹Ì¶¨µÄphpÎļþÖÐ. Óõڶþ¸ö¼Æ»®ÈÎÎñÔÚµÚÒ»¸ö¼Æ»®ÈÎÎñÖ´Ðкó°ë¸öСʱ,Ö´ÐÐÉÏÃæµÄ¹Ì¶¨µÄphpÎļþ. ʵ¼ÊÇé¿öµÈÓпÕʵÑéºóÔÙ˵. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ