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
Ïà¹ØÎĵµ£º
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/2010/02/03/1-10/
ÓëÆäËû±à³ÌÓïÑÔ²»Í¬µÄÊÇ£ºPHPµÄÊý¾ÝÀàÐͲ»ÊÇÓɳÌÐòÔ±ÔÚ¶¨Òå±äÁ¿µÄʱºò¾ö¶¨µÄ£¬¶øÊÇÓÉPHPÔÚ³ÌÐòÔËÐйý³ÌÖж¨Òå¡£
PHP¹²Ö§³Ö8ÖÖÊý¾ÝÀàÐÍ£ºÕûÐÍ£¨integer£©¡¢¸¡µãÐÍ£¨float£©¡¢×Ö·û´®ÐÍ£¨string£©ºÍ²¼¶ûÐÍ£¨Boolean£©ËÄÖÖ±êÁ¿ÀàÐÍ£¬Êý×飨array£©ºÍ¶ÔÏó£¨object£ ......
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 À´²é¿´ÊÇÄÄÒ»ÐеĴíÎóÐÅÏ¢.
×ܽá:µ½ÏÖÔÚΪֹ,ÕûÁËÒ»Ìì,×°ÁËÈý´ÎϵͳµÄÂé·³ÖÕÓÚÇ×ÉíÖ¤Ã÷ÁË,
Õâ¸ö×ï¿ý»öÊײúÉúµÄÔÒò ......
i £ºÈç¹ûÔÚÐÞÊηûÖмÓÉÏ"i"£¬ÔòÕýÔò½«»áÈ¡Ïû´óСдÃô¸ÐÐÔ£¬¼´"a"ºÍ"A" ÊÇÒ»ÑùµÄ¡£
U£ººÍÎʺŵÄ×÷Óò¶à£¬ÓÃÓÚÉèÖÃ"̰À·Ä£Ê½"¡£
m£ºÄ¬ÈϵÄÕýÔò¿ªÊ¼"^"ºÍ½áÊø"$"Ö»ÊǶÔÓÚÕýÔò×Ö·û´®Èç¹ûÔÚÐÞÊηûÖмÓÉÏ"m"£¬ÄÇô¿ªÊ¼ºÍ½áÊø½«»áÖ¸×Ö·û´®µÄÿһÐУºÃ ......
»ùÓÚPHPÓïÑÔµÄÂÛ̳¿ÉÒÔ˵ÊÇĿǰ×ȫ¶øÇÒÖ´ÐдúÂëЧÂÊ×î¸ßµÄÂÛ̳ÁË£¬ºÍASPÏà±ÈËû¿ÉÒÔʵÏÖºÍMYSQL¸üºÃ½áºÏµÄÌØµã£¬½áºÏPHPMYADMIN¿ÉÒÔ¸üºÃµÄ¹ÜÀíºÍά»¤Êý¾Ý¿âÐÅÏ¢¡£Ò»°ãÇé¿öÏÂʹÓÃapacheºÍPHP´îÅä±È½Ï˳ÊÖ£¬²»¹ýºÜ¶àʱºòÓÉÓÚÌØ¶¨ÒòËØºÍÌõ¼þµÄ¾ÖÏÞ£¬ÎÒÃÇÒªÇóÔÚIIS»ù´¡ÉϽ¨Á¢PHPÓ¦Óû·¾³¡£½ñÌì±ÊÕß¾ÍΪ¸÷λ½éÉÜÈçºÎÔÚIISºÍWin ......
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 ......