ΪphpÌṩssh2µÄÖ§³Ö
ÔÌù£ºhttp://www.haw-haw.org/node/150
ÓÃÀ´ÔÚphp³ÌÐòÀï·½±ãµÄÁ¬µ½Ô¶³ÌÖ÷»ú
Ö´ÐгÌÐò
²¢È¡»Ø½á¹û
Ê×ÏÈ£¬ÏµÍ³ÐèÒªÒѾװÓÐopensslºÍopenssl-devel°ü
rpm -qa | grep openssl
È»ºó£¬°²×°libssh2
µ±ÏÂÀ´Ô´´úÂëºó
./configure && make all install
ÔÙÈ»ºó£¬°²×°PECL/ssh2
¿ÉÒÔÓÃÃüÁîpear install ssh2
(ÑÛÇ°¿ÉÄÜÖ»ÄÜÓÃpear install ssh2-beta
)
»òÕßÊÇÈ¥PECL/ssh2
µ±ÏÂÀ´Ô´´úÂë
È»ºó
phpize && ./configure –with-ssh2 && make
ÔÙÈ»ºó°ÑÉú³ÉµÄssh2.so
Îļþ¿½±´µ½php.ini
ÖÐÉêÃ÷µÄextension_dir
Ŀ¼Ï£¨ÕâÀïÊÇ/usr/lib/php4£©
cp modules/ssh2.so /usr/lib/php4/
ÔÙÔÚ/etc/php.dĿ¼ÏÂн¨Ò»¸öÎļþssh2.ini
echo "extension=ssh2.so" > /etc/php.d/ssh2.ini
ÔÙÖØÆðweb server£¬ÈÃÆäÖضÁphp.ini
¸ã¶¨
Ô´´ÎÄÕ£¬×ªÔØÇë×¢Ã÷£º
תÔØ×ÔÎûÎû¹þ¹þµÄ²¿Âä¸ñ(blog)
±¾ÎÄÁ´½ÓµØÖ·:
ΪphpÌṩssh2µÄÖ§³Ö
Ïà¹ØÎĵµ£º
1.ʹÓÃPHPµÄ´´Ê¼ÈË Rasmus Lerdorf дµÄAPCÀ©Õ¹Ä£¿éÀ´ÊµÏÖ£¨http://pecl.php.net/package/apc£©
APCʵÏÖ·½·¨£º
°²×°APC£¬²ÎÕÕ¹Ù·½Îĵµ°²×°£¬¿ÉÒÔʹÓÃPECLÄ£¿é°²×°·½·¨¿ìËÙ¼ò½Ý£¬ÕâÀﲻ˵Ã÷
ÅäÖÃphp.ini£¬ÉèÖòÎÊý apc.rfc1867=1 £¬Ê¹APCÖ§³ÖÉÏ´«½ø¶ÈÌõ¹¦ÄÜ£¬ÔÚAPCÔ´Âë˵Ã÷ÎĵµÀïÃæÓÐ˵Ã÷
´úÂë·¶Àý£º
¸´ÖÆPHPÄÚÈݵ½¼ô ......
ҪʹÄúµÄFCKeditorÄܹ»Ê¹ÓÃÉÏ´«¹¦ÄÜ£¬Äú±ØÐë½øÐÐÒÔÏÂÅäÖÆ¡£
×¢Ò⣺FCKeditor²»Ö§³ÖÐéÄâĿ¼£¬ÄúµÄ·¾¶ÉèÖö¼ÊÇÕë¶ÔÍøÕ¾¸ùĿ¼µÄ¾ø¶Ô·¾¶¶øÑԵġ£Õâµã¶ÔÓÚ·¢²¼µ½Ô¶³ÌÍøվĿ¼µÄ¿ª·¢Õß¼«Îª²»±ã£¬ºóÃæÎÒÃÇ»á¶Ô´Ë½øÐÐÌÖÂÛ¡£
Ò»¡¢´ò¿ªfckeditor\editor\filemanager\upload\php\config.php£¬ÕÒµ½´úÂë$Config['Enabled']£¬½«Öµ ......
ÏÈ°²×°µÄzlib ./configure --prefix=/usr/local/zlib È»ºó×°µÄcurl ./configure --prefix=/usr/local/curl --with-zlib=/usr/local/zlib °²×°gdĬÈÏ°²×° ./configure --prefix=/usr/local/gd --with-zlib=/usr/local/zlib (ÓÐЩǰÃæÏÈ°²×°jepg,png...with¾Í¿ÉÒÔÁË,Ö®ºóphpµÄʱºò¿´./configure --helpÀïÃæÓоßÌåµÄ) ° ......
ÓÉÓÚ ÔÚphp4µÄ»·¾³ÏÂ. ¶¼Ã»ÕÒµ½×Ô¶¯Éú³ÉµÄº¯Êý. ËùÒÔ×Ô¼º¸ÄдÁËÒ»¸ö±ðÈËЩµÄÀà. ÓÃÀ´×Ô¶¯Éú³Éxml Îļþ.
<?php
/*
*** ¹¦ÄÜ : php4×Ô動Éú³Éxml Îļþ類
*** @ edit: zxwo0o
*** @ time: 2009-9-22
*/
class php4xml{
var $version; //°æ±¾號
var $start; ......
»·¾³£ºÔÚlinux ϵͳÏ°²×°ºÃPHP+mysql +apache»·¾³·¢ÏÖPHPûÓÐÖ§³Öpdo_mysqlÀ©Õ¹ÓÚÊǾö¶¨ÖØбàÒëPHP,ÆäÖÐmysql²ÉÓÃrpm·½Ê½°²×°
³¢ÊÔ£º./configure --with-apxs2=/usr/local/apache/bin/apxs --with-iconv --with-oci8=instantclient,/usr /lib/oracle/10.2.0.1/client/lib --with-mysql=/usr/local/mys ......