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

php½âѹÎļþ£¬Ñ¹Ëõ

zip.class.php
CODE:
[¸´ÖƵ½¼ôÇаå]
<?
class 
zip 

{

var 
$datasec

$ctrl_dir 
= array();
var 
$eof_ctrl_dir 

"x50x4bx05x06x00x00x00x00"
;
var 
$old_offset 

0
; var 
$dirs 
= Array(
"."
);

function 
get_List
(
$zip_name
)
{
  
$zip 
= @
fopen
(
$zip_name

'rb'
);
  if(!
$zip
) return(
0
);
  
$centd 

$this
->
ReadCentralDir
(
$zip
,
$zip_name
);

   @
rewind
(
$zip
);
   @
fseek
(
$zip

$centd
[
'offset'
]);

  for (
$i
=
0

$i
<
$centd
[
'entries'
]; 
$i
++)
  {
   
$header 

$this
->
ReadCentralFileHeaders
(
$zip
);
   
$header
[
'index'
] = 
$i
;
$info
[
'filename'
] = 
$header
[
'filename'
];
   
$info
[
'stored_filename'
] = 
$header
[
'stored_filename'
];
   
$info
[
'size'
] = 
$header
[
'size'
];
$info
[
'compressed_size'
]=
$header
[
'compressed_size'
];
   
$info
[
'crc'
] = 
strtoupper
(
dechex

$header
[
'crc'
] ));
   
$info
[
'mtime'
] = 
$header
[
'mtime'
]; 
$info
[
'comment'
] = 
$header
[
'comment'
];
   
$info
[
'folder'
] = (
$header
[
'external'
]==
0x41FF0010
||
$header
[
'external'
]==
16
)?
1
:
0
;
   
$info
[
'index'
] = 
$header
[
'index'
];
$info
[
'status'
] = 
$header
[
'status'
];
   
$ret
[]=
$info
; unset(
$header
);
  }
 return 
$ret
;
}
funct


Ïà¹ØÎĵµ£º

phpºÍapache°æ±¾Æ¥ÅäÎÊÌâ(¸ãÁËÒ»ÕûÌì,×°ÁËÒ»´Îϵͳ)

1:·ÅÁË6¸öÎļþÔÚcÅÌÏÂ(php5ts.dll,libmysql.dll ,php_gd2.dll,php_mysql.dll,php_mbstring.dll ),Ò»¸öÔÚwindowsÏÂ,ÁíÎå¸öÔÚwindows/system32ÏÂ
2:ÅäÖÃÁËpath
3:ÃüÁî:httpd.exe -w -n "Apache2" -k start À´²é¿´ÊÇÄÄÒ»ÐеĴíÎóÐÅÏ¢.
×ܽá:µ½ÏÖÔÚΪֹ,ÕûÁËÒ»Ìì,×°ÁËÈý´ÎϵͳµÄÂé·³ÖÕÓÚÇ×ÉíÖ¤Ã÷ÁË,
Õâ¸ö×ï¿ý»öÊײúÉúµÄÔ­Òò ......

php ÕýÔò±í´ïʽ ÐÞÊηû

i £ºÈç¹ûÔÚÐÞÊηûÖмÓÉÏ"i"£¬ÔòÕýÔò½«»áÈ¡Ïû´óСдÃô¸ÐÐÔ£¬¼´"a"ºÍ"A" ÊÇÒ»ÑùµÄ¡£
U£ººÍÎʺŵÄ×÷Óò¶à£¬ÓÃÓÚÉèÖÃ"̰À·Ä£Ê½"¡£
m£ºÄ¬ÈϵÄÕýÔò¿ªÊ¼"^"ºÍ½áÊø"$"Ö»ÊǶÔÓÚÕýÔò×Ö·û´®Èç¹ûÔÚÐÞÊηûÖмÓÉÏ"m"£¬ÄÇô¿ªÊ¼ºÍ½áÊø½«»áÖ¸×Ö·û´®µÄÿһÐУºÃ ......

phpÖÐµÄ Àà³£Á¿ Class Constants


It is possible to define constant values on a per-class basis remaining the same and unchangeable.
Constants differ from normal variables in that you don't use the $ symbol to declare or use them. Like static members, constant values cannot be accessed from an instance of the object (using $obje ......

¡¾×ª¡¿ÔÚPHPÖÐʹÓÃSimpleTest½øÐе¥Ôª²âÊÔ

      SimpleTestÊÇÒ»¸öʹÓÃÊ®·Ö¼òµ¥µÄµ¥Ôª²âÊÔ¹¤¾ß¡£
      Ò»ÏÂÄÚÈÝÊÇÎÒ×Ô¼ºÉè¼ÆµÄÀûÓÃSimpleTest¶ÔÒ»¸öÏîÄ¿½øÐе¥Ôª²âÊԵĴúÂë
Ò»¡¢Îļþ½á¹¹
      Ò»¸öÏîÄ¿Óжà¸öÎļþ¼Ð£¬Îļþ¼ÐÖл¹°üº¬Îļþ¼Ð¡£ÎÒÃÇÒª½øÐвâÊԵĴúÂë¼´°üº¬ÔÚÕâЩÎļ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ