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

PHPÒ³Ãæ·ÖÒ³º¯Êý

 ºÜ¾ÃǰЩµÄһЩÎÄÕ£¬ÄÇʱºò¼¼Êõ»¹ÔÚ³õ¼¶½×¶Î£¬ÔÚÏÖÔÚ¿´À´´úÂë¹»Àõģ¬µ«ÊÇÈË×ÜÊÇÒ»²½²½×ßÉÏÀ´µÄ£¬Ï£ÍûÄܸø³õѧÕßÒ»µã¹ÄÀøÁË£¡
<?php
/*********************************************************
 filename£ºmulti.php
 describe£º ÏÔʾ¶àÓÚÒ»Ò³µÄÁ´½Ó
 function£º·ÖÒ³ÏÔʾģ¿é
 author£º  etongchina@gmail.com
 checked£º 2008-02-15 18:05
 µ÷Ó÷½Ê½£º
$num:Êý¾Ý¿â×ܼǼÊý
$perpage:ÿҳÏÔʾÌõÊý
$curr_page:µ±Ç°Ò³Âë
$mpurl:Á´½ÓµÄURL
$type:url¸ÄдºóµÄÁ´½Ó
ĬÈϹæÔòΪ£ºµ±Ç°Ò³Âë.htm
*********************************************************/
function multi($num, $perpage, $curr_page, $mpurl,$type = 0) {
 $multipage = '';
 if(!is_numeric($curr_page) || ( $curr_page < 1 )){
  showmessage("ÎÞЧҳÃæ²ÎÊý!");
  //×Ô¶¨ÒåµÄÊä³öÌáʾº¯Êý
 }
 if($type == 1){
  $script = '';
 }else{
  $script = ".htm";
 }
 if($num > $perpage) {
  $page = 6;
  $offset = 2;
  $pages = ceil($num / $perpage);
  if($curr_page > $pages){
   showmessage("Äú²é¿´µÄÒ³Ãæ²»´æÔÚ£¡");
  }
  $from = $curr_page - $offset;
  $to = $curr_page + $page - $offset - 1;
  if($page > $pages) {
   $from = 1; $to = $pages;
  }else{
   if($from < 1) {
    $to = $curr_page + 1 - $from;
    $from = 1;
    if(($to - $from) < $page && ($to - $from) < $pages) {
     $to = $page;
    }
   }elseif($to > $pages) {
    $from = $curr_page - $pages + $to;
    $to = $pages;
    if(($to - $from) < $page && ($to - $from) < $pages) {
     $from = $pages - $page + 1;
    }
&nbs


Ïà¹ØÎĵµ£º

Nginx + PHP£¨FastCGI£©¡±Web·þÎñÆ÷

   ÏÂÃæÊÇÓÃ100¸ö²¢·¢Á¬½Ó·Ö±ðȥѹÉú²ú»·¾³ÖÐͬһ¸ºÔؾùºâÆ÷VIPÏ¡¢ÌṩÏàͬ·þÎñµÄÁ½Ì¨·þÎñÆ÷£¬Ò»Ì¨ÎªNginx£¬Áíһ̨ΪApache£¬NginxÿÃë´¦ÀíµÄÇëÇóÊýÊÇApacheµÄÁ½±¶¶à£¬Nginx·þÎñÆ÷µÄϵͳ¸ºÔØ¡¢CPUʹÓÃÂÊÔ¶µÍÓÚApache£º
¡¡¡¡Äã¿ÉÒÔ½«Á¬½ÓÊý¿ªµ½10000¡«30000£¬È¥Ñ¹NginxºÍApacheÉϵÄphpinfo.php£¬ÕâÊÇÓÃä¯ÀÀÆ÷·ÃÎ ......

PHPÈ¡¶þ½øÖÆÎļþÍ·¿ìËÙÅжÏÎļþÀàÐÍ


<?php
$filename
=
"
D:
\\
296.mid
"
;
$file
     =
fopen
(
$filename
,
"
rb
"
)
;
$bin
      =
fread
(
$file
,
2
)
;
//Ö»¶Á2×Ö½Ú
fclose
(
$file
)
;
$strInfo
  = @
unpack
(
"
c2chars
" ......

phpÊÕ¼¯

get_class_methods() // ËùÓз½·¨   
get_included_files()//·µ»Øµ±Ç°Ò³ËùÓмÓÔصÄÎļþ   
get_declared_classes()// ·µ»Øµ±Ç°Ò³ËùÓÐclass   
get_declared_interfaces()// ·µ»ØËùÓеĽӿڠ  
get_defined_functions()// ·µ»ØËùÓеÄfunction &nb ......

PHPѧϰ

ÓÉÓÚijÖÖÐèÒª£¬ÕâÒ»¶ÎÐèҪѧϰPHP£¬ËùÒÔÔÚÕâÀà¼Ç¼һÏÂ×Ô¼ºµÄһЩÐĵúÍ×Ô¼ºÔÚѧϰÖÐÓöµ½µÄһЩÎÊÌâ¡££¨¸üÐÂÖÐ...£©
1.LinuxºÍwindowsÏ¿ª·¢PHP
ÔÚÕâÁ½ÖÖϵͳÏ¿ª·¢PHP¶¼ÐèÒª´î½¨»·¾³£¬ÔÚLinuxÏÂÒ»°æÓÃapache×÷Ϊweb·þÎñÆ÷£¬¶øÇÒÏà¶ÔÀ´Ëµ»·¾³µÄ´î½¨ºÜ¼òµ¥£»¶øÔÚwindowsÏÂÒªÊÇ¿ª·¢PHP½¨ÒéÓÃwindows server 2003£¬windows x ......

ÂÌÉ«php×ÊÔ´ÍøÕ¾Õýʽ³ÉÁ¢

 ÖйúµÚÒ»µµÂÌÉ«PHP×ÊÔ´·ÖÏíÃÅ»§,רעÓÚ´´ÐºÍÔ­´´ÀàÔ´Âëphp×ÊÔ´£¬Ô­´´ÊÓƵphp×ÊÔ´£¬Ô­´´µäÐÍÄ£¿éphp×ÊÔ´£¬Ô­´´php¿ªÔ´×ÊÔ´£¬Ô­´´php½Ì³Ì×ÊÔ´£¬Ô­´´Íøվģ°å×ÊÔ´ ¡£ÍøÕ¾µØÖ· http://www.phpzy.com/
ÂÌÉ«php×ÊÔ´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ