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

³¬Ç¿PHP·ÖÒ³Àà

ʵÀýÓ¦Óãº
1<?
2require_once('../libs/classes/page.class.php');
3$page=new page(array('total'=>1000,'perpage'=>20));
4echo 'mode:1<br>'.$page->show();
5echo '<hr>mode:2<br>'.$page->show(2);
6echo '<hr>mode:3<br>'.$page->show(3);
7echo '<hr>mode:4<br>'.$page->show(4);
8echo '<hr>¿ªÊ¼AJAXģʽ:';
9$ajaxpage=new page(array('total'=>1000,'perpage'=>20,'ajax'=>'ajax_page','page_name'=>'test'));
10echo 'mode:1<br>'.$ajaxpage->show();
11?>
12
13
  1<?
2/**
3 * filename: ext_page.class.php
4 * @package:phpbean
5 * @author :feifengxlq<feifengxlq#gmail.com><[url=http://www.phpobject.net/]http://www.phpobject.net/[/url]>
6 * @copyright :Copyright 2006 feifengxlq
7 * @license:version 2.0
8 * @create:2006-5-31
9 * @modify:2006-6-1
10 * @modify:feifengxlq 2006-11-4
11 * description:³¬Ç¿·ÖÒ³À࣬ËÄÖÖ·Öҳģʽ£¬Ä¬ÈϲÉÓÃÀàËÆbaidu,googleµÄ·ÖÒ³·ç¸ñ¡£
12 * 2.0Ôö¼Ó¹¦ÄÜ£ºÖ§³Ö×Ô¶¨Òå·ç¸ñ£¬×Ô¶¨ÒåÑùʽ£¬Í¬Ê±Ö§³ÖPHP4ºÍPHP5,
13 * to see detail,please visit [url=http://www.phpobject.net/blog/read.php]http://www.phpobject.net/blog/read.php[/url]?
14 * example:
15 * ģʽËÄÖÖ·Öҳģʽ£º
16 require_once('../libs/classes/page.class.php');
17 $page=new page(array('total'=>1000,'perpage'=>20));
18 echo 'mode:1<br>'.$page->show();
19 echo '<hr>mode:2<br>'.$page->show(2);
20 echo '<hr>mode:3<br>'.$page->show(3);
21 echo '<hr>mode:4<br>'.$page->show(4);
22 ¿ªÆôAJAX£º
23 $ajaxpage=new page(array('total'=>1000,'perpage'=>20,'ajax'=>'ajax_page','page_name'=>'test'));
24 echo 'mode:1<br>'.$ajaxpage->show();
25 ²ÉÓü̳Ð×Ô¶¨Òå·ÖÒ³ÏÔʾģʽ£º
26 demo:http://www.phpobject.net/blog
27 */
28class page
29{
30 /**
31 * config ,public
32 */
33 var $page_name="PB_page";//page±êÇ©£¬ÓÃÀ´¿ØÖÆurlÒ³¡£±ÈÈç˵xxx


Ïà¹ØÎĵµ£º

windowsÏÂPHPµ÷ÓÃÖ´ÐÐ×ÀÃæ³ÌÐòµÄ·½·¨[תÔصÄ]

phpµ÷ÓÃÍⲿ³ÌÐòµÄ·½·¨Ò»°ãÓÃexec,systemµÈ£¬µ«ÕâÑùÖ´ÐеÄʱºò±ØÐëµÈ´ýÍⲿ³ÌÐò½áÊøºó£¬phpÒ³Ãæ²ÅÄܼÌÐøÖ´ÐУ¬·ñÔòÍøÒ³»áÒ»Ö±µÈ´ý¡£
ÈçºÎ¸Ä±äÕâÖÖÇé¿öÄØ£¿
Ê×ÏÈ
 ÒªÖªµÀphpµ÷ÓõijÌÐòĬÈ϶¼ÊÇ·ÅÔÚºǫ́ÔËÐеģ¬¼´Ê¹ÊÇ×ÀÃæ³ÌÐòÔÚ×ÀÃæÒ²¿´²»µ½£¬µ½½ø³ÌÁбí²ÅÄÜ¿´µ½
 
ÕâÊÇÓÉÓÚphpµ÷ÓóÌÐòÊÇͨ¹ýapacheÀ´Íê³ÉµÄ£ ......

phpÖмòµ¥µÄ·ÖÒ³

<%
rs.pagesize=14
page=cint(Request.QueryString("page"))
if page<1 then
page=1
elseif page>rs.pagecount then
page=rs.pagecount
end if
rs.AbsolutePage=page
IF rs.BOF and rs.eof then
Response.Write("<br><br>±¾Õ¾ÔÝÎÞÈÕÖ¾¼Ç¼£¡£¡<br><br>")
response.end
end if ......

2009Äê9ÔÂÓïÑÔÅÅÐаñ£ºPHP³¬Ô½C++

TIOBEÊÀ½ç±à³ÌÓïÑÔÅÅÐаñÕ¹ÏÖÁ˱à³ÌÓïÑÔµÄÁ÷ÐÐÇ÷ÊÆ¡£Ã¿¸öÔ£¬¶¼ÓÐ×îеÄÊý¾Ý±»¸üС£Õâ·ÝÅÅÐаñµÄÊý¾ÝÈ¡ÑùÀ´Ô´ÓÚ»¥ÁªÍøÉϸ»Óо­ÑéµÄ³ÌÐòÔ±¡¢ÉÌ ÒµÓ¦Óá¢ÖøÃûµÄËÑË÷ÒýÇ棨ÖîÈç¹È¸è¡¢ MSN ¡¢ÑÅ»¢£©µÄ¹Ø¼ü×ÖÅÅÃû¡¢ Alexa ÉϵÄÅÅÃûµÈ¡£Çë×¢ÒâÕâ¸öÅÅÐаñÖ»ÊÇ·´Ó³ÁËij¸ö±à³ÌÓïÑÔµÄÈÈÃÅ³Ì¶È , Õâ²¢²»´ú±íËüÊÇÒ»¸ö×îºÃµÄ±à³ÌÓïÑÔ»òÊ ......

ÔÚIIS 5.1 »òIIS6 ÖÐÅäÖÃPHP µÄFastCGIģʽ


ÔÚIIS 5.1 »òIIS6 ÖÐÅäÖÃPHP µÄFastCGIģʽ
Ò»¡¢FastCGIÊÇʲô£¿
¡¡¡¡FastCGIÊÇÓïÑÔÎ޹صġ¢¿ÉÉìËõ¼Ü¹¹µÄCGI¿ª·ÅÀ©Õ¹£¬ÆäÖ÷ÒªÐÐΪÊǽ«CGI½âÊÍÆ÷½ø³Ì±£³ÖÔÚÄÚ´æÖв¢Òò´Ë»ñµÃ½Ï¸ßµÄÐÔÄÜ¡£ÖÚ
ËùÖÜÖª£¬CGI½âÊÍÆ÷µÄ·´¸´¼ÓÔØÊÇCGIÐÔÄܵÍϵÄÖ÷ÒªÔ­Òò£¬Èç¹ûCGI½âÊÍÆ÷±£³ÖÔÚÄÚ´æÖв¢½ÓÊÜFastCGI½ø³Ì¹ÜÀíÆ÷µ÷¶È£¬Ôò¿ÉÒÔÌṩÁ¼ºÃ ......

php±à³Ì£¬Õë¶ÔMYSQLµÄ²Ù×÷Àà

<?php
/*
*PHP¹ÜÀíMYSQLµÄÊý¾Ý¿âÀà
ʹÓ÷½·¨£º$dbConn = new DbConn([$Êý¾Ý¿âÃû(¿ÉÑ¡)]);
ÔÊÐí·µ»ØµÄ·½·¨£º
Execute($sql) //Ö´ÐÐSQLÓï¾ä£¬Ã»Óзµ»ØÖµ;
getRs($sql) //·µ»Ø²éѯÓï¾äµÄ¼Ç¼£¬Ò»Ìõ;
getRsArray($sql) //·µ» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ