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

¡¾Ñ§Ð£È«¾Ö¹¤¾ßÌõ¡¿¹«¸æÄ£¿é(jquery¡¢ajax¡¢php)

ÏîÄ¿ÉèÏë
ѧУ¸÷²¿ÃŵÄÍøÕ¾²¢·ÇÓõÄÒ»Ì×cmsϵͳ£¬ÐÐÕþ²¿ÃÅÓë¶þ¼¶Ñ§ÔºµÄÍøÕ¾ÊýÁ¿ÖÚ¶àÇÒ¿ª·¢ÈËÔ±µÄˮƽ²Î²î²»Æ룬µ¼ÖÂÐÅÏ¢¼Ü¹¹±È½Ï»ìÂÒ¡£Í¨¹ýÒ»¸öÈ«¾ÖµÄ¹¤¾ßÌõʵÏÖȫУվµãÁ´½ÓÓ빫¸æ¶¯Ì¬¸üУ¨ÄÜÔÚÈκÎÒ»¸ö×ÓÕ¾µã¿´µ½×îÐµĹ«¸æ£©µÄ¹¦ÄÜ¡£
¹«¸æÄ£¿éÊý¾Ý¿âÉè¼Æ(Êý¾Ý¿â:globaltools)
Ê×ÏÈ´´½¨Ò»¸ö±íannouncement£¬°üÀ¨Ëĸö×ֶΣ¬¹«¸æ±àºÅ£¨id£©£¬·¢²¼»ú¹¹£¨publisher£©£¬ÄÚÈÝ£¨msg£©ÒÔ¼°Ê±¼ä´Á£¨timestamp£©¡£´´½¨Êý¾Ý¿âµÄmysql´úÂ룺
CREATE TABLE 'announcement'
(
id int(6) NOT NULL auto_increment,
publisher varchar(255) NOT NULL,
msg text NOT NULL,
timestamp int(9) NOT NULL,
PRIMARY KEY ('id')
)
·þÎñÆ÷¶Ë(½ÓÊÕ¹«¸æµÄÌá½»²¢°´Ö¸¶¨Êý¾Ý½á¹¹Êä³öxml)
Ê×ÏÈÁ´½ÓÊý¾Ý¿â£¬µ±½ÓÊÕµ½¹«¸æµÄÌύʱ°Ñ¹«¸æÄÚÈݲåÈëµ½Êý¾Ý¿â£¬Í¬Ê±¸üÐÂÊý¾Ý¿â(±£³ÖÊý¾Ý¿âÖ»ÓÐ10¸ö¹«¸æ£©£¬È»ºóÊä³öxml¡£
php´úÂ룺
<?php
//ÅäÖÃÐÅÏ¢
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "12345678";
$dbname = "globaltools";
//×î´ó´æ´¢¹«¸æÌõÊý
$max_store = 10;
//¿Í»§¶Ë³õʼ¼ÓÔع«¸æÌõÊý
$max_original = 5;
//ÎĵµÍ·²¿ÐÅÏ¢
header("Content-type: text/xml");
header("Cache-Control: no-cache");
//ÉèÖà PHPµÄ±¨´í¼¶±ðΪ±¨¸æËùÓдíÎó
error_reporting(E_ALL);
¿Í»§¶Ë(ÿ¸ôÒ»¶Îʱ¼ä·¢Æð²éѯÊý¾Ý¿âÐÅÏ¢²éѯµÄÇëÇó²¢ÏÔʾ)
ÉèÖÃÒ»¸ö¶¨Ê±Æ÷£¬Ã¿¸ôÒ»¶Îʱ¼äµ÷ÓÃÒ»´Î£¬È»ºóʹÓûص÷º¯Êý´¦Àí·þÎñÆ÷¶Ë·µ»ØµÄxmlÊý¾Ý£¬½«Êý¾Ý½âÎöºó²åÈëµ½ÏàÓ¦µÄÎĵµÇøÓòÖС£


Ïà¹ØÎĵµ£º

phpÖ§³Ö4ÖÖ±ê¼Ç·ç¸ñ

xml±ê¼Ç<?php    ?>
½Å±¾·ç¸ñ <script language="php"></script>
¶Ì±ê¼Ç<? ?>
asp±ê¼Ç<%   %>
Èç¹ûÏëÖ§³Ö¶Ì±ê¼ÇºÍasp±ê¼Ç£¬ÐèÒªÔÚphp.iniÖÐÅäÖÃ
short_open_tag
asp_tags
ÉèΪon ......

¡¶Head First Éè¼Æģʽ¡·´úÂëÖ®PHP°æ

¡¶Head First
Éè¼Æģʽ¡·ÊDZ¾²»´íµÄ½²½âÉè¼ÆģʽµÄÊ飬²»ÏñF4дµÄÄÇô¿ÝÔӦ¸ÃËãÊDZȽÏÈÝÒ×Àí½âµÄºÃÊé¡£ÊéÖеÄÀý×Ó¶¼±È½ÏdzÏÔÒ׶®£¬²»¹ýÓÉÓÚÊÇÍâ¹úÀÐдµÄ£¬ËùÒÔÀý×Ó
µÄÏ°¹ß²»ÊǺܸ½ºÏÖйúÌØÉ«£¬¿ÉÄÜż¶û¿´ÆðÀ´ÓÐЩ±ðŤ£¬»¹ÓÐÓïÑÔÏ°¹ßÒ²²»ÊÇÖйú·ç¡£µ±È»¿´¹ýÕâ±¾ÊéÖ®ºó£¬Äã²ÅÄÜÉî¿ÌÀí½âÉè¼Æģʽµ½µ×ÄÜΪÄã½â¾öÄÄЩ
퉣 ......

IIS+PHP+MYSQLÅäÖù¦ÂÔ

PHPµÄÖ´ÐÐЧÂÊÊÇÓÐÄ¿¹²¶ÃµÄ£¬ÕâÒ²ÊÇÎÒϲ»¶ËüµÄÔ­ÒòÖ®Ò»£¬ºÍËü³ÆΪ¾øÃî´îµµµÄMysqlÒÔ¼°ApacheÏëÈںϣ¬²»Äܲ»¾ªÌ¾ÆäЧÂÊÁË¡£PHP¸üÐÂÒ²ºÜ¿ì£¬ÕâÀïÁоÙÁËÄ¿Ç°×îа汾PHP4.3.2RC4£¨¼¸ºõûÓÐBUGÁË£¬¹À¼ÆдÍêÕâƪ²»¾ÃºóÕýʽ°æ¾Í³öÁË£©£¬ºÍ×îа汾µÄMysql4.0.13µÄ°²×°¹ý³Ì¡£   
¡¡¡¡PHPµÄ°²×°Îļþ¿ÉÒÔÖ±½Óµ½ &nb ......

php »ù´¡±Ê¼Ç class

/***************************by
garcon1986********************************/
<?php
//¼òµ¥Ê¾Àý
class SimpleClass
{
public $var = 'a default value';
public function displayVar(){
echo $this->var;
}
}
// create an object´´½¨Ò»¸ö¶ÔÏó
$A = new SimpleClass;
//µ÷Ó÷½·¨
$A -> displayVa ......

PHP¶àάÊý×é

/***************************by
garcon1986********************************/
Ò»¸öÈýάÊý×éµÄÏÔʾ£¬±£´æÒÔ±¸ÒÔºóʹÓá£
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
error_reporting(E_ALL ^ E_NOTICE);
$conn = mysql_connect("localhost","charle ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ