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

PHP²ÉÓÃPear::PagerʵÏÖ·ÖÒ³


1¡¢
Ê×ÏÈÈ¥http://pear.php.net/package/Pager ÏÂÔØ Pager°ü£ºPager-2.4.8.tgz
£»
2¡¢
½âѹµ½×Ô¼ºµÄ¹¤×÷Ŀ¼
3¡¢
ʾÀýÈçÏ£º
<?php
require_once('Pager/Pager.php');
$params = array(
'itemData' => $re, //Òª½øÐзÖÒ³µÄ½á¹ûÊý×é
'perPage' => 12, //ÿҳµÄ¼Ç¼Êý
'delta' => 8, //ÿҳÏÔʾµÄÒ³ÂëÊý
'append' => true,//Ò³ÂëÔÚurl´«µÝ
'clearIfVoid' => false,//µ¥Ò³ÊÇ·ñÏÔʾҳÂë
'urlVar' => 'entrant',//´«µÝÒ³ÂëµÄ±äÁ¿Ãû
'useSessions' => true,
'closeSession' => true,
'mode' => 'Jumping', //Ò³ÂëÏÔʾ·½Ê½
'prevImg' => 'ÉÏÒ»Ò³',
'nextImg' => 'ÏÂÒ»Ò³',
'firstPagePre' => '',
'firstPageText'=> 'µÚÒ»Ò³',
'firstPagePost'=> '...',
'lastPagePre' => '...',
'lastPageText' => '×îÄ©Ò³',
'lastPagePost' => '',
'altPrev' => 'ÉÏÒ»Ò³',
'altNext' => 'ÏÂÒ»Ò³',
'altPage' => '',
'curPageLinkClassName'=> 'current', //µ±Ç°Ò³Ò³ÂëÏÔʾÑùʽ
);
if (isset($_REQUEST['sort'])) $params['extraVars'] = array('sort' => $_REQUEST['sort'], 'order' => $_REQUEST['order']); //urlÌí¼ÓÆäËûµÄ²ÎÊý
$pager = & Pager::factory($params);
$page_data = $pager->getPageData();//·ÖÒ³½á¹û
$links = $pager->getLinks();//Ò³ÂëÁ¬½Ó
?>



Ïà¹ØÎĵµ£º

PHPÍøÒ³UTF8±àÂ뿪·¢Öпհ׵ÄÎÊÌâ

¿ª·¢ÖÐһֱû°ì·¨½â¾öµÄÒ»¸öÎÊÌâ
¡¡¡¡Ò³Ãæ²ÉÓÃUTF8±àÂ룬ͷ²¿ºÍβ²¿ÓÃÁËÄ£°å°üº¬ÎļþµÄ·½·¨£¬½á¹ûÍ·²¿ºÍβ²¿Î޶˶˸÷¶à³öÒ»¸öÔ¼10pxµÄ¿Õ
ÐУ¬Ê²Ã´Ò²Ã»ÓС£
¡¡¡¡Ô­ÒòÊÇÈ«²¿²ÉÓÃutf8±àÂ룬°üº¬ÎļþµÄʱºò£¬×îºóµÄ¶þ½øÖÆÁ÷Öаüº¬Á˶à´ÎUTF8
BOM±ê¼Ç£¬IE²»ÄÜÕý³£½âÎö°üº¬¶à¸öUTF8 BOM ±ê¼ÇµÄÒ³Ã棬ֱ½ÓÌæ»»³Éʵ¼ÊÏÔʾµÄ»Ø³ ......

PHPÉÏ´«FTPºóÎÞ·¨Õý³£Ê¹Óà ³öÏ֓ŵ”

½ñÌìÕæÊǵ¹Ã¹µÄÈÕ×Ó£¬ºÁ²»ÈÝ×öºÃµÄÍøÕ¾ÉÏ´«µ½Ftp¡£¾ÓÈ»ÎÞ·¨Ê¹Óá£ÏÖÏóΪphpÒ³Ãæʲô¶¼ÏÔʾ²»³öÀ´¡£µ«ÊÇÔÚÎÒ±¾µØÈ·ÊǺúõġ£ ÄѵÀͬÑùµÄ¶«Î÷ÉÏ´«µ½FTPÉÏ»áÓÐÎÊÌâÂ𣿠¾­¹ýÎÒ½«½üÈý¸öСʱµÄµ÷²é£¬ÖÕÓڲ鴦ÁËÔ­Òò¡£ Ô­À´ һЩ utf-8¸ñʽµÄÎļþ¼ÓÁËBOM¡£Õâ¸öBOM¿É²»ÊǸöºÃ¶«Î÷¡£»á¸ãµÃ¼¸¸ö±à¼­Æ÷ Éñ»êµßµ¹µÄ¡£×îÖ±½ÓµÄ±íÏÖ¾ ......

Linux»·¾³µÄAMP°²×° PHP°²×°


3¡¢PHP°²×°
1£©»¹ÊÇÏÂÔØÔ´Âë°ü£¬È磺php-5.1.1.tar.gz£¬ÏÂÔصØÖ·£ºhttp://www.php.net
2£©½âѹËõ£¬>tar -zxvf php-5.1.1.tar.gz
3£©½øÈëphp-5.1.1£¬>cd php-5.1.1
4£©°²×°ÅäÖã¬>./configure --prefix=/opt/php
--with-apxs2=/opt/apache/bin/apxs --with-mysql=/opt/mysql
--with-mysqli=/opt/mysql/bin/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ