[²âÊÔ]£º·ÂÍøÒ×V½»ÓÑPHP°æ
²âÊÔ£ºhttp://www.yincode.com
Óû§£ºtest1 test2 test3
ÃÜÂ룺123456
=======================================
2010/01/12/18:54:24
=======================================
¹È¸èä¯ÀÀÆ÷ä¯ÀÀ²»Õý³£
main.js
function getData(u,m,callBack){
var ru=u+"&r="+Math.random();
$("loading").style.display="";
new Ajax.Request(ru,{
method:m,
encoding:"GBK",
onSuccess:callBack,
onComplete:function(){
$("loading").style.display="none";
},
onFailure:function(){
alert("ÇëÇó³ö´íÁË£¡");
}
});
}
Request ÎÞ·¨µ÷Óú¯Êý
Ïà¹ØÎĵµ£º
±í´ïʽÊÇ PHP ×îÖØÒªµÄ»ùʯ¡£ÔÚ PHP ÖУ¬¼¸ºõÄãËùдµÄÈκζ«Î÷¶¼ÊÇÒ»¸ö±í´ïʽ¡£¼òµ¥µ«È´×ȷµÄ¶¨ÒåÒ»¸ö±í´ïʽµÄ·½Ê½¾ÍÊÇ“anything that has a value”¡£
×î»ù±¾µÄ±í´ïʽÐÎʽÊdz£Á¿ºÍ±äÁ¿¡£µ±Äã¼üÈë“$a = 5”£¬¼´½«Öµ '5' ·ÖÅ䏸±äÁ¿ $a¡£'5'£¬ºÜÃ÷ÏÔ£¬ÖµÎª 5£¬»»¾ä»°Ëµ '5' ÊÇÒ»¸öֵΪ5µÄ±í´ïʽ£ ......
ÓÃphpÉú³ÉexcelÎļþ
<?
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
echo "test2/t/n";
echo "test1/t";
e ......
<?php
echo "<br>";
?>
<?php
function GetIP()
{
if(!empty($_SERVER["HTTP_CLIENT_IP"]))
$cip = $_SERVER["HTTP_CLIENT_IP"];
else if(!empty($_SERVER["HTTP_X_FORWARDED_FOR"]))
$cip = $_SERVER["HTTP_X_FORWARDED_FOR"];
else if(!empty($_SERVER ......
¸ÚλְÔð
1¡¢ÐÖúϵͳ¼Ü¹¹Éè¼ÆÊ¦½øÐÐϵͳ¼Ü¹¹Éè¼Æ¹¤×÷£»
2¡¢³Ðµ£WebÓ¦ÓúËÐÄÄ£¿éµÄÉè¼Æ/ʵÏÖ¹¤×÷£»
3¡¢³Ðµ£Ö÷Òª¿ª·¢¹¤×÷£¬¶Ô´úÂëÖÊÁ¿¼°½ø¶È¸ºÔð£»
4¡¢½øÐйؼü¼¼ÊõÑéÖ¤ÒÔ¼°¼¼ÊõÑ¡Ð͹¤×÷£»
5¡¢ºÍ²úÆ·¾Àí¹µÍ¨²¢È·¶¨²úÆ·¿ª·¢ÐèÇó£»
¸ÚλҪÇó
1¡¢¾ßÓл¥ÁªÍøÁìÓòÏà¹ØÏîÄ¿¿ª·¢¹¤×÷¾Ñ飬¶Ô»¥ÁªÍøÒµÎñÒÔ¼°¼¼ÊõÓÐÏà ......
PHPÖеÄMYSQL³£Óú¯Êý×ܽá
1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó
¸ñʽ£º
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
Àý£º
$conn = @mysql_connect("localhost", "username", "password") or dir( ......