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

ÓÃPHPʵÏÖÊÖ»ú¹éÊôµØ²éѯapi½Ó¿Ú

ÓÃPHPʵÏÖÊÖ»ú¹éÊôµØ²éѯapi½Ó¿Ú£º
Ö÷ҪʹÓÃcurlʵÏÖ£¬ÐèÒª¿ªÆôphp¶ÔcurlµÄÖ§³Ö.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<?php
header("Content-Type:text/html;charset=utf-8");
if (isset($_GET['number'])) {
$url = 'http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx/getMobileCodeInfo';
$number = $_GET['number'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, "mobileCode={$number}&userId=");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
$data = simplexml_load_string($data);
if (strpos($data, 'http://')) {
echo 'ÊÖ»úºÅÂë¸ñʽ´íÎó!';
} else {
echo $data;
}
}
?>
<form action="upload.php" method="get">
ÊÖ»úºÅÂë: <input type="text" name="number" /> <input type="submit" value="Ìá½»" />
</form>
</body>
</html>


Ïà¹ØÎĵµ£º

ʹÓà PHP ¿ª·¢»ùÓÚ Web ·þÎñµÄÓ¦ÓóÌÐò

תÔØ×Ô£ºhttp://www.ibm.com/developerworks/cn/webservices/1003_chenchen_phpws/index.html
PHP SOAP À©Õ¹
SOAP µÄÈ«³ÆΪ¼òµ¥¶ÔÏó·ÃÎÊЭÒé (Simple Object Access Protocol)¡£ËüÊÇÒ»ÖÖ»ùÓÚ XML
µÄ£¬¿ÉÀ©Õ¹µÄͨÐÅЭÒé¡£SOAP ÌṩÁËÒ»ÖÖ±ê×¼£¬Ê¹µÃÔËÐÐÔÚ²»Í¬Æ½Ì¨Éϲ¢Ê¹Óò»Í¬µÄ±à³ÌÓïÑÔ±àдµÄÓ¦ÓóÌÐò¿ÉÒÔ»¥Ïà½øÐÐͨÐÅ¡ ......

phpÖÐswfuploadÉÏ´«²»ÄÜÅжϵǼ״̬.

ÔÚÏîÄ¿Öн«Ô­ÓеÄÉÏ´«¸ÄΪflash¶àÎļþÉÏ´«,µ«ÊÇÕâÆäÖÐÓöµ½Á˸öºÜÓôÃƵÄÎÊÌâ,µ±ÓÐ×öÓû§ÅжÏʱºò,˵°×Á˾ÍÊÇÅжÏcookieµÄʱºò,»ñÈ¡µ½µÄÖµ×ÜÊÇ¿Õ,µ¼ÖÂ×ÜÊÇÈÏΪÓû§Î´µÇ¼....
ºóÀ´ÉÏÍø²éÁËÏÂ,ÕÒµ½Ò»ÆªÎÄÕÂ:
СÐÄswfupload µÄcookie Bug
ʹÓÃSWFUploadµÄʱºòÒ»¶¨ÒªÐ¡ÐÄcookie
bug£ºÔÚ·ÇIEÄÚºËÄں˵Ää¯ÀÀÆ÷ÏÂʹÓÃSWFUpload ......

phpÒ³Ãæ³£ÓõÄjs

echo "<script language='javascript'>
alert('ͼÊéÐÅÏ¢Ìí¼Ó³É¹¦!');history.back();</script>";
¡¾ ×ÖÌ壺<A href="javascript:ContentSize(16)">´ó</A>
                   ......

ÄÄÖÖPHP IDEÏà¶Ô½ÏºÃ

×ÜÌå¶øÂÛ£¬Ò»¸öºÃµÄIDEÐèÒªÂú×ãµÄ¹¦ÄÜ£º
¡·1.
»ù±¾µÄIDEÒªÇ󣺴úÂë¹ÜÀí£¬±à¼­Æ÷µÄ¸÷ÖÖÖÇÄܹ¦Äܵȣ»
¡·2. ÔËÐкÍdebug£º¿ÉÒÔ±¾µØÔ¶³Ì·Ö±ðscriptºÍweb
page½øÐÐrunºÍdebug£»
¡·3. ÓÉÓÚPHP¿ª·¢µÄͨ³£¹ý³Ì¶¼ÊÇ£º´úÂëÔÚremoteµÄserverÉÏ£¬¿ª·¢ÈËÔ±µÄ»úÆ÷ÐèҪͨ¹ýFTP»òÕßSSHÁ¬½Óµ½serverÉϽøÐпª·¢ºÍµ÷ÊÔ£¬Òò´ËÈç¹ûIDEÔÚÈç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ