Linux ÏÂphpÀ©Õ¹ tidy µÄ°²×° _ ²Î¿¼
tidy ÊÇÒ»¸ö·Ç³£°ïæµÄÍøÒ³´úÂë·ÖÎöºÍ¾À´íµÄ¹¤¾ß£¬Äܹ»Ö§³Ö¶àÖÖÒ³Ãæ±àÂ룬²¢ÇÒÖ§³ÖxhtmlÊä³ö¡£Èç¹ûÎÒÃÇ͵ÀÁ£¬ÉõÖÁ¿ÉÒÔ½«Õû¸öÒ³Ã滺´æ£¬×îºó²ÉÓÃtidy´¦Àí£¬×îºóÊä³öÍêÃÀµÄxhtml´úÂë¡£
linuxÏ°²×°¹ý³ÌÈçÏ£º
Ê×ÏÈ°²×°tidy £¬ÏÂÔØtidyÔ´´úÂ룺
cvs -d:pserver: anonymous@tidy.cvs.sourceforge.net Ϊ·À±¸µç×ÓÓʼþµØÖ·ÊÕ¼¯Æ÷£¬Õâ¸ö E-mail µØÖ·±»Òþ²Ø£¬ÄãµÄä¯ÀÀÆ÷±ØÐëÖ§³Ö Javascript ²Å¿É¿´µ½Õâ¸öÓʼþµØÖ· :/cvsroot/tidy login
cvs -z3 -d:pserver: anonymous@tidy.cvs.sourceforge.net Ϊ·À±¸µç×ÓÓʼþµØÖ·ÊÕ¼¯Æ÷£¬Õâ¸ö E-mail µØÖ·±»Òþ²Ø£¬ÄãµÄä¯ÀÀÆ÷±ØÐëÖ§³Ö Javascript ²Å¿É¿´µ½Õâ¸öÓʼþµØÖ· :/cvsroot/tidy co tidy
È»ºó±àÒ룺
cd tidy/build/gmake/
make
make install
tidy ±àÒëÍê³ÉÁË£¬½ÓÏÂÀ´ÎÒÃÇ°²×°phpÀ©Õ¹£¬phpÎĵµÖж¼Ëµ peclÖÐtidy-1.xÖ§³Öphp 4.3ÒԺ󣬶ø tidy-2.xÖ§³Öphp5 £¬µ«ÊÇÎÒ¾ÍûÕÒµ½tidy 2.x £¬µ«ÊÇtidy-1.2ÔÚÎÒµÄphpÏÂÔËÐÐÒ²Õý³£¡£
wget http://pecl.php.net/get/tidy-1.2.tgz
tar -xvzf tidy-1.2.tgz
cd tidy-1.2
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make;make install
½ÓÏÂÀ´ÐÞ¸Äphp.ini
¼ÓÉÏ extension="tidy.so"
ÖØÆôapache ¾Í¿ÉÒÔÁË¡£
±ÈÈçµ±¶ÔÁ½¸öhtml½øÐбȽÏʱ£¬ ÈçºÎÄܹ»ÕýÈ·µØÏòÓû§Ìṩ ÓѺõıȽϽá¹û¡£¾ÙÒ»¸öºÜ¼òµ¥µÄÀý×Ó¡£
<span>123</span> ºÍ<div>123</div> ÔÚhtml source ²ãÃæÊÇÍêÈ«²»Í¬µÄ×Ö·û´®£¬µ«ÊǶÔÓÚÓû§ÌåÑéÀ´Ëµ£¬ÕâÁ½¸ö×Ö·û´®ÊÇÒ»Öµġ£ ÔÙ±ÈÈç
<ul><li>First</li><li>Second</li></ul> ºÍ <li>First</li><li>Second</li> ÔÚÏÔʾµÄʱºòÊÇÍêÈ«Ò»Ö£¬µ«ÊÇhtml È·²îÁ˺ܶࡣ ÎÒÃÇ¿ÉÒÔ´Ó¼¼ÊõÉÏÏòÓû§½âÊÍ˵£¬ ËûÃDZ¾À´¾ÍÊDz»Ò»ÑùµÄ£¬µ«ÊÇÕâÑù»áÏÅÅÜÎÒÃǵÄÓû§¡£
ÎÒÏëÁ˺ܶà°ì·¨À´½â¾öÕâ¸öÎÊÌ⣬½â¾ö·½°¸¾ÍÊǽ¨Á¢Ò»¸ö¿ÉÅäÖõÄÅäÖÃ±í£¬ ͨ¹ý·´É佨Á¢ÆðÒ»Ì×¹æÔò£¬µ±³öÏֱȽϽá¹ûºÍhuman ÌåÑé²»Ò»ÖµÄʱºò£¬¾ÍÀûÓÃÕâÌ×Âß¼½øÐÐÐÞÕý£¬µ«ÊÇÕâÑùµÄÎÊÌâ¾ÍÊÇ Í·ÌÛÒ½ÌÛ ½ÅÌÛÒ½½Å £¬×ÜÊÇÖͺóÓÚÓû§·¢ÏÖÎÊÌ⣬¾ÍºÍIE µÄ²¹¶¡Ò»Ñù£¬ËäÈ»¿ÉÒÔ½â¾öÎÊÌ⣬µ«ÊÇÓÀÔ¶¶¼ÊÇÔÙ·¢ÏÖÎÊÌâÒÔºó²ÅÈ¥½â¾ö¡£
ÖÕÓÚÓÐÒ»µã£¬Í´Ï¾öÐÄ£¬ÔÚ¸ù×ÓÉϽâ¾öÕâ¸öÎÊÌâ¡£ ½â¾öÕâ¸öÎÊÌâµÄ¹Ø¼ü£¬¾ÍÊÇÔÚÏàͬµÄÓû§ÌåÑéµÄÇ°ÌáÏ£¬¾¡Á¿µÄ½«Êý¾ÝÔ´ÐÞÕýΪͬµÈ±È½Ï£¬ ÕâÑùµÄΨһ½â¾ö·½°¸¾ÍÊÇ
Ïà¹ØÎĵµ£º
ÎÒÃǵĵ绰±¨ÃûϵͳÖУ¬ºô½ÐÖÐÐÄÊÕ¼¯ÁËÓû§µÄÒøÐÐÐÅÏ¢£¬È»ºóÇëÇóÒøÐеÄÖ§¸¶½Ó¿ÚµÄwebservice£¬ÐèÒª½øÐг¬Ê±ÉèÖã¬ÒòΪ²»ÄÜÒ»Ö±ÈÃѧԱµÈ´ý
½â¾ö·½·¨ÊÇ
1:Ê×ÏÈÏÈÒª¿´Ò»ÏÂphp.iniÀïµÄĬÈϳ¬Ê±Ê±¼ä£¬Ò»°ãÊÇ120Ãë
2£ºÔÚphp´úÂëÀï¼ÓÉÏ
ini_set('default_socket_timeout', 10);//ÉèÖó¬Ê±Ê±¼ä
ÈçÏÂͼ
......
ʹÓ÷½·¨£º
<?
Include “email.class”
$mail->setTo("a@a.com"); //ÊÕ¼þÈË
$mail-> setCC£¨"b@b.com,c@c.com"£©; //³ËÍ
$mail-> setCC£¨"d@b.com,e@c.com"£©; //ÃØÃܳËÍ
$mail->setfrom(“f@f.com”);//·¢¼þÈË
$mail->setSubject(“Ö÷Ìâ”) ; //Ö÷Ìâ
$ ......
»ù´¡Ìâ:
1.±íµ¥ÖÐ getÓëpostÌá½»·½·¨µÄÇø±ð?
´ð:getÊÇ·¢ËÍÇëÇóHTTPÐÒéͨ¹ýurl²ÎÊý´«µÝ½øÐнÓÊÕ,¶øpostÊÇʵÌåÊý¾Ý,¿ÉÒÔͨ¹ý±íµ¥Ìá½»´óÁ¿ÐÅÏ¢.
2.sessionÓëcookieµÄÇø±ð?
´ð:session:´¢´æÓû§·ÃÎʵÄÈ«¾ÖΨһ±äÁ¿,´æ´¢ÔÚ·þÎñÆ÷ÉϵÄphpÖ¸¶¨µÄĿ¼Öеģ¨session_dir£©µÄλÖýøÐеĴæ·Å
cookie:ÓÃÀ´´æ´¢Á¬Ðø ......
PHPµ÷ÊÔ»·¾³·Ç³£Âé·³,¶øÇÒÖÖÀàÆä¶à.ÍøÉϵÄÏà¹ØÎÄÕÂÌ«¶àÁË,µ«ÓÉÓÚʱЧµÄÎÊÌâ,²¢²»ÄÜÓÃ.
½ñÌìÕÒµ½Ò»ÆªÎÄÕÂ,ÓÚ2009Äê12ÔÂ17ÈÕ²âÊÔ¿ÉÓÃ.µ«Ê¹ÓÃPDT֮ǰ,Ðè×°JDK,¿Éµ½http://www.skycn.com/soft/3116.htmlÏÂÔØ
ÎÄÕµØÖ·:http://blog.csdn.net/yuhui_fish/archive/2009/03/29/4033397.aspx
ÄÚÈÝÈçÏÂ:
×î½üÔÚÓÃphp£¬ÅäÖúÜÂé·³£ ......
<?php
/**
* ¸Ä±äͼƬµÄ¿í¸ß
*
* @author flynetcn (2009-12-16)
*
* @param string $img_src ÔͼƬµÄ´æ·ÅµØÖ·»òurl
* @param string $new_img_path ÐÂͼƬµÄ´æ·ÅµØÖ·
* @param int $new_width ÐÂͼƬµÄ¿í¶È
* @param int $new_height ÐÂͼƬµÄ¸ß¶È
* @return bool ³É¹¦true, ʧ°Üfalse
* ......