Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ЧÂʸßд·¨ (ת)

0¡¢Óõ¥ÒýºÅ´úÌæË«ÒýºÅÀ´°üº¬×Ö·û´®£¬ÕâÑù×ö»á¸ü¿ìһЩ¡£ÒòΪPHP»áÔÚË«ÒýºÅ°üΧµÄ×Ö·û´®ÖÐËÑÑ°±äÁ¿£¬µ¥ÒýºÅÔò²»»á£¬×¢Ò⣺ֻÓÐechoÄÜÕâô×ö£¬ËüÊÇÒ»ÖÖ¿ÉÒ԰Ѷà¸ö×Ö·û´®µ±×÷²ÎÊýµÄ“º¯Êý”£¨Òë×¢£ºPHPÊÖ²áÖÐ˵echoÊÇÓïÑԽṹ£¬²»ÊÇÕæÕýµÄº¯Êý£¬¹Ê°Ñº¯Êý¼ÓÉÏÁËË«ÒýºÅ£©¡£
1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿ ......

php GetImageSize

array getimagesize(string filename)
¸Ãº¯Êý·µ»ØÒ»¸öËÄÎÞËصľØÕ󡢸æËßÄãËù¸øÎļþÃûµÄͼÏñ³ß
´ç¡£¸ÃÎļþµÄ¸ñʽ±ØÐëÊÇGIF,jpeg»òPNGÖеÄÈÎÒ»ÖÖ¡£
 Ôª
ËØ
 ÃèÊö
 0
¿í¶ÈµÄÏñËØÊý 
 1
¸ß
¶ÈµÄÏñËØÊý 
 2
ͼÏñµÄÀàÐÍ£¨GIF=1,JPG=2,PNG=3) 
 3
ÔÚ
IMG±ê¼ÇÖпÉÓõ ......

php Ñ­»·É¾³ýÒ»¸öĿ¼»òÇå¿ÕÒ»¸öĿ¼


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......

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ÖÐʹÓÃSimpleTest½øÐе¥Ôª²âÊÔ

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