Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 MVC ѧϰ ThinkPHP

1.ʲôÊÇMVC£¿
MVC±¾À´ÊÇ´æÔÚÓÚDesktop£¨×ÀÃ棩³ÌÐòÖеģ¬MÊÇÖ¸Êý¾ÝÄ£ÐÍ£¬VÊÇÖ¸Óû§½çÃ棬CÔòÊÇ¿ØÖÆÆ÷¡£Ê¹ÓÃMVCµÄÄ¿µÄÊǽ«MºÍVµÄʵÏÖ´úÂë·ÖÀë¡£MVCÊÇÒ»¸öÉè¼Æģʽ£¬ËüÇ¿ÖÆÐÔµÄʹӦÓóÌÐòµÄÊäÈ룬´¦ÀíºÍÊä³ö·Ö¿ª¡£Ê¹ÓÃMVCÓ¦ÓóÌÐò±»·ÖΪÈý¸öºËÐIJ¿¼þ£ºÄ£ÐÍ£¬ÊÔͼ£¬¿ØÖÆÆ÷¡£ËüÃǽ«´¦Àí×Ô¼ºµÄÈÎÎñ¡£
2.ΪʲôҪʹÓÃMVC?
Ê×Ï ......

±È½ÏASP/.NET/ASP/PHP/JSPÍøÕ¾¿ª·¢ÓïÑÔ

Ä¿Ç°ÔÚInternetÉϹ㷺ʹÓõĺǫ́¼¼ÊõÖÖÀà·±¶à£¬Ó¦ÓñȽϹ㷺µÄÓÐCGI£¬ASP£¬PHP£¬JSP/JavaServlet£¬ColdFusionµÈ¡£ÔÚÕâÒ»½ÚÀÖ÷Òª½éÉܼ¸ÖÖÔÚ¹úÄÚÓ¦ÓñȽϹ㷺µÄºǫ́ÓïÑÔ¡£
¡¡¡¡CGI£¬È«³ÆΪCommon Gateway Interface
¡¡¡¡CGI¾ÍÊǹ«¹²Íø¹Ø½Ó¿Ú (Common Gateway Interface) µÄËõд¡£ËüÊÇ×îÔç±»ÓÃÀ´½¨Á¢¶¯Ì¬ÍøÕ¾µÄºǫ́¼¼Êõ ......

Windows Ï Apache Mysql PHP µÄ°²×°

Ò»  Apache µÄ°²×°
 1  Apache µÄ°²×°
2 ͬÒâЭÒé
3 ½Ó×Å "Next "
4  Ìîд ÓòÃû(network domain) ·þÎñÆ÷µÄÃû³Æ (Server Name) ¹ÜÀíÕßÓÊÏä(Administrator's Email)
5 °²×°ÀàÐÍ
6 Ñ¡Ôñ°²×°Â·¾¶
7 µã»÷“install ” ¼ÌÐø
8 ¿ªÊ¼°²×°
9  °²×°½áÊø
¶þ   MySqlµÄ°²×° ......

phpµÄËæ»úÅÅÐò


Èç¹ûÔÚPHPÖÐҪʵÏÖ¶Ô²ÊƱµÄʵÏÖÓ¦¸ÃÔõô×öÄØ£¿
¸ù¾ÝÇ°Ã漸ÕÅÌáµ½µÄ¼¸ÖÖÊý×éÓ÷¨£ºPHP˳ÐòÅÅÐò£¬PHP——¶þ·Ö·¨²éÕÒÊý¾Ý£¬ÔÚPHPÊý×éÖÐËÑË÷Ö¸¶¨µÄÖµ£¬PHPÊý×éµÄÈëÕ»Óë³öÕ»£¬ºÏ²¢£Ð£È£ÐÊý×飬Äܹ»ÊµÏÖ²ÊƱ¹¦ÄÜÂð£¿
´ð°¸ÊÇ£º¿ÉÒÔ¡£µ«ÊÇÕâÑù×öµÄ´úÂë»á±äµÃºÜÓ·Öס£
Õâʱ£¬ÎÒ¿´µ½ÁËphpµÄshuffleº¯Êý¡£shuffleº¯Êý¿É ......

PHP ²¢·¢¿ØÖÆÑùÀý£¨×ª£©

ÖµµÃ²Î¿¼Ò»Ï¸óÌÐòÉè¼ÆµÄ˼·£º
[ÎÄÕÂ×÷ÕߣºÕÅÑç ±¾ÎÄ°æ±¾£ºv1.0 ×îºóÐ޸ģº2007.11.16 תÔØÇë×¢Ã÷³ö´¦£ºhttp://blog.s135.com]
¡¡¡¡×î½üÓöµ½Ò»¸öÎÊÌ⣬LinuxϵÄPHPÃüÁîÐгÌÐò×÷ΪÊØ»¤½ø³Ì£¬ÐèÒª´Ó¶ÓÁÐÎļþÖжÁÒ»ÐÐÊý¾Ý£¬Í¨¹ýTCPЭÒé·¢Ë͸øÍâµØµÄ½ÓÊÕ·þÎñÆ÷£¬ÔÙ¶ÁÏÂÒ»ÐÐÊý¾Ý£¬ÔÙ·¢ËÍ¡£µ±±¾µØÓëÍâµØµÄÍøÂç×´¿ö²»ºÃʱ£¬ÓÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ