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

PclZip:Ç¿´óµÄPHPѹËõÓë½âѹËõzipÀà


PclZip¼ò½é
PclZipÊÇÒ»¸öºÜÇ¿´óµÄѹËõÓë½âѹËõzipÎļþµÄPHPÀ࣬PclZip libraryÄܹ»Ñ¹ËõÓë½âѹËõZip¸ñʽµÄѹËõµµ£¨WinZip¡¢PKZIP£©£»ÇÒÄܶԴËÀàÀ൵°¸½øÐд¦Àí£¬°üÀ¨²úÉúѹËõµµ¡¢ÁгöѹËõµµµÄÄÚÈÝÒÔ¼°½âѹËõµµ°¸µÈµÈ¡£
¼òµ¥¡¢Ò×Óá¢Ç¿´óÊÇÎÒ¶ÔËüµÄÆÀ¼Û¡£
×î½üÔÚ¿ª·¢ÎÒµÄWordpress²å¼þShareLink£¬ÔÚÕâ¹ý³ÌÖУ¬·¢ÏÖÁËPclZipÕâ¸ö²Ù×÷zipÎļþµÄPHPÀ࣬²»µÃ²»ÍƼöÏ¡£
»¹ÓÐÁíÍâÒ»¸öÍƼöµÄÔ­Òò¾ÍÊÇÔÚËüµÄÔ´ÂëÀïÃæÈÃÎÒ·¢ÏÖÁËÒ»¸öPHPº¯Êý²ÎÊýµÄÒùµ´Ó÷¨¡£ÏÂÃ潫¾ÙÀý˵Ã÷¡£
Éú³ÉzipÎļþ
Ó÷¨Ò»£º
< ?php
        include_once('pclzip.lib.php');
        $archive = new PclZip('archive.zip');
        $v_list = $archive->create('file.txt,data/text.txt,folder');
        if ($v_list == 0) {
            die("Error : ".$archive->errorInfo(true));
        }
?>
Ó÷¨¶þ£º
< ?php
        include_once('pclzip.lib.php');
        $archive = new PclZip('archive.zip');
        $v_list = $archive->create('data/file.txt,data/text.txt',
                                         PCLZIP_OPT_REMOVE_PATH, 'data',
                                         PCLZIP_OPT_ADD_PATH, 'install');
        if ($v_list == 0) {
            die("Error : ".$archive->errorInfo(true));
        }
?>
¿´¼ûcreate·½·¨µÄ²ÎÊýûÓУ¬ÔÙ¿´¿´·½·¨Ô­ÐÍÄã¾ÍÖªµÀÈçºÎÒùµ´ÁË¡£ÖÁÉÙÎÒ»¹Ã»ÓÐÕâÑùÓùý¡£
Ïà¹ØÎĵµ£º
PclZip¹Ù·½µØÖ·£ºhttp://www.phpconcept.net/pclzip/index.php
PclZipÊÖ²áµØÖ·£ºhttp://www.phpconcept.net/pclzip/man/en/index.php
PEARÀà´´½¨ZIPµµ°¸Îļþ£ºhttp://www.ccvita.com/10.html
PclZip¼ò½éÓëʹÓãºhtt


Ïà¹ØÎĵµ£º

php json_encode ÎÊÌâ½â¾öС¼Ç

½ñÌìÅöµ½¸öÆæ¹ÖµÄÎÊÌ⣬һ¸öajaxÒ³ÃæÔÚ±¾µØ²âÊÔ·þÎñÆ÷ÔËÐÐÒ»ÇÐÕý³££¬´«µ½¹«Íø·þÎñÆ÷ÉϾÍËÀ»î˵ javascript´íÎó¡£
´ò¿ª´úÂëÒ»¿´£¬ÊÇjavascriptµÄÄÇÒ»ÐÐʹÓÃÁËÒ»¸öjsonµÄreponseText£¬DEBUGһϣ¬Ô­À´»Ø´«Êǿյġ£
¿´¿´ºǫ́PHP£¬Ã²ËÆûʲôÎÊÌ⣨±¾À´ÒÔΪÊÇURLÎÊÌ⣩ȻºóÉÏÍøËÑһϣ¬Ô­À´ÊÇPHPµÄjson_encodeº¯ÊýÔÚ5.2ϲÅÓÐ ......

PHP»º³å¼¼Êõ


Ò»¡¢»º´æ¼¼Êõ:   
ÓÐЩÐÅÏ¢±È·½¾­³£²»±äµÄ,µ«ÊÇ»¹ÊÇÄܱäµÄÐÅÏ¢·ÅÔÚ»º´æÖÐÒÔ¼Ó¿ìÏÔʾËÙ¶È,ÕâÊǺÜÓмÛÖµµÄ,ËùνµÄ»º´æ,ͨË×µÄÀí½â¾ÍÊÇһЩ±£´æÔÚ·þÎñÆ÷¶ËµÄ¹²ÓÃÐÅÏ¢.ËüÊÇÓÚ·þÎñÆ÷ͬÉúËÀµÄ,ÎÒÃÇÔÚ±£´æ»º´æµÄʱºò¿ÉÒÔÖ¸¶¨Ï´θüеÄʱ¼äµÄÅжÏ,±È·½ÒªÔÚ5·ÖÖÓ¸üÐÂÒ»´Î,¿ÉÒԼǼÉϴθüеÄʱ¼ä,ºÍµ±Ç°Ê±¼ä±È½Ï, ......

PHP SOAP À©Õ¹Ïê½â

PHP SOAP À©Õ¹
SOAP µÄÈ«³ÆΪ¼òµ¥¶ÔÏó·ÃÎÊЭÒé (Simple Object Access Protocol)¡£ËüÊÇÒ»ÖÖ»ùÓÚ XML µÄ£¬¿ÉÀ©Õ¹µÄͨÐÅЭÒé¡£SOAP ÌṩÁËÒ»ÖÖ±ê×¼£¬Ê¹µÃÔËÐÐÔÚ²»Í¬Æ½Ì¨Éϲ¢Ê¹Óò»Í¬µÄ±à³ÌÓïÑÔ±àдµÄÓ¦ÓóÌÐò¿ÉÒÔ»¥Ïà½øÐÐͨÐÅ¡£SOAP µÄ¿ÉÀ©Õ¹ÐÔºÍƽ̨ÎÞ¹ØÐÔʹµÃËü±»¹ã·ºÓÃ×÷ Web ·þÎñµÄͨÐÅЭÒé¡£
ÓÉÓÚ Java ÓïÑÔÌṩÁË¶Ô S ......

9.3 ͨ¹ýPHP²Ù×÷AccessÊý¾Ý¿â

9.3  ͨ¹ýPHP²Ù×÷AccessÊý¾Ý¿â
9.3.1  Á¬½ÓAccessÊý¾Ý¿â
ÔÚPHPÖÐÁ¬½ÓAccessÓÐÈçÏÂ3ÖÖ·½Ê½¡£
£¨1£©´´½¨ÏµÍ³Êý¾ÝÔ´£¬ÓÃPHPÌṩµÄODBCº¯Êý
¼´¿É¡£
£¨2£©Í¬Ñù¿ÉÒÔʹÓÃPHPµÄODBCº¯Êý£¬µ«²»´´½¨
Êý¾ÝÔ´¡£¿ª·ÅÊý¾Ý¿âÁ¬½Ó£¨Open DateBase
Conection£¬ODBC£©ÊÇWindows Open
Server£¨¿ª·Å·þÎñ£©API£¨WOSA£©²úÆ·Ö®Ò ......

Nginx/PHP/path_infoÎÊÌâ,È¥µôindex.php

×÷ÓÃÊÇ°ÑÐÎÈ磺www.abc.com/index.php/blog/show µÄµØÖ·ÃÀ»¯³É  www.abc.com/blog/show  ,ʹÓÃ$_SERVER['PATH_INFO']½ÓÊÕ±äÁ¿¡£
server
{
listen 80;
server_name myweb;
index index.html index.htm index.php;
root /home/zhaowei/code;
if (!-f $request_filename) { ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ