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

PHP+AjaxʵÏÖTabЧ¹û

ÓÃAjaxʵÏÖTabЧ¹ûµÄ
ÏÈ´´½¨
ajax.php£¬ÔÚÆäÖÐÊäÈëÈçÏ´úÂ룺
<!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>
<title>Sample 2_1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
<!--
//Create a boolean variable to check for a valid Internet Explorer instance.
var xmlhttp = false;
//Check if we are using IE.
function creatXMLHttp(){
 try
 {
  //If the Javascript version is greater than 5.
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  //alert ("You are using Microsoft Internet Explorer.");
 }
 catch (e)
 {
  //If not, then use the older active x object.
  try
  {
   //If we are using Internet Explorer.
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
   //alert ("You are using Microsoft Internet Explorer");
  }
  catch (E)
  {
   //Else we must be using a non-IE browser.
   xmlhttp = false;
  }
 }
 //If we are using a non-IE browser, create a javascript instance of the object.
 if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
 {
  xmlhttp = new XMLHttpRequest();
  //alert ("You are not using Microsoft Internet Explorer");
 }
}
function makerequest(serverPage, objID)
{
 creatXMLHttp();
 var obj = document.getElementById(objID);
 xmlhttp.open("GET", serverPage);
 xmlhttp.onreadystatechange = function()
 {
  if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
  {
   obj.innerHTML = xmlhttp.responseText;
  }
 } 
 xmlhttp.send(null);


Ïà¹ØÎĵµ£º

PHP ¸ßЧÂÊд·¨ PHP³õѧÕ߱ؿ´

1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿¶¨Òå³Éstatic£¬ËüµÄËÙ¶È»áÌáÉý½«½ü4±¶¡£
2¡¢$row['id'] µÄËÙ¶ÈÊÇ$row[id]µÄ7±¶¡£
3¡¢echo ±È print ¿ì£¬²¢ÇÒʹÓÃechoµÄ¶àÖØ²ÎÊý(Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã)´úÌæ×Ö·û´®Á¬½Ó£¬±ÈÈçecho $str1,$str2¡£
4¡¢×îºÃʹÓÃForeachÖ´ÐÐÑ­»·£¬ÔÚÖ´ÐÐforÑ­»·Ö®Ç°È·¶¨×î´óÑ­»·Êý£¬²»ÒªÃ¿Ñ­»·Ò»´ ......

PHP»ù±¾°²È«·À·¶£¬³õѧÕ߱ؿ´

1¡¢Ò»°ãÒ³ÃæÍ¨¹ýGET½ÓÊյIJÎÊý¶¼ÊÇINTÐÍ£¨ÕûÐÍ£©¾Ó¶à£¬µ«ÊÇÒª·À·¶Ò»Ð©²»¹æ·¶µÄÊäÈ룬½ÓÊÕʱÓÃÕûÐͺ¯Êýת»»Ò»ÏÂ
            $id=intval($_GET["id"]);
2¡¢ÓÐÉÏ´«¹¦ÄÜʱ£¬Ò»¶¨Òª¼ì²éÎļþÀàÐÍ¡£²»ÄÜÈÎÒâÓɷÿÍÉÏÔØËùÓÐÎļþ¡££¨ÌرðҪעÒâһЩHTML±à¼­Æ÷µÄ©¶´£©
3 ......

ÓÃPHPʵÏÖ¼òµ¥µÄ·´Ïò×î´óÆ¥ÅäÖÐÎÄ·Ö´Ê£¨´úÂ룩

ÀàÎļþwordsplit.class.php£º
<?php
/********************************************************************
* DirCMSÖÐÎÄ·Ö´ÊÀà beta 1.0
* ---------------------------
* begin : 2010-5-11 beta 1.0
* update : 2 ......

»ñµÃphpËù¶ÔÓ¦µÄÅäÖÃÎļþ(php.ini)ÐÅÏ¢

[root@BIND9-master /usr/local/bin]# php --ini
Configuration File (php.ini) Path: /usr/local/etc
Loaded Configuration File:         /usr/local/Zend/etc/php.ini
Scan for additional .ini files in: /usr/local/etc/php
Additional .ini files parsed:  &n ......

Ò»¸öPHPÈÕÀú³ÌÐò

//calendar.php
<?¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
/*******************************¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡*¡¡ ÓÃÀ´ÅжÏÊÇ·ñÈòÄêµÄº¯Êý¡¡¡¡*¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
¡¡*¡¡ ¿ÉÒÔ¸ù¾Ý¸ü¸´ÔÓµÄËã·¨¸Ä½ø¡¡*¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ