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

PHPÕûºÏFCKeditor


ÉùÃ÷£¬ÎÒÓõÄPHP¿ò¼ÜÊÇCI£¨codeignitor)£¬µ«ÆäʵÒòΪÊÇÓÃJSµ÷ÓÃFCKeditorµÄ£¬ËùÒÔÕâ¸öºÍ¿ò¼ÜûÓйØϵ
Ê×ÏÈÏÂÔØFCKeditor 2.6.3 £¨ÎÒʹÓõÄÊÇÕâ¸ö°æ±¾£©
¿ÉÒÔÔÚCSDNÖÐÏÂÔØ
½âѹ£¬½«FCKeditor2.6.3ÏÂÃæµÄfckeditorÕû¸öÎļþ¼Ð¸´ÖƵ½ÍøÕ¾¸ùĿ¼(ºÍindex.php£©Í¬Ò»¸öĿ¼£¬²¢¸üÃûΪfck£¨²»¸ÄÃûÒ²ÐУ¬µ«ºóÃæÉèÖøù·¾¶µÄʱºò£¬¼ÇµÃ¸ÄÃû×Ö£©
È»ºóÔÚÊÓͼij¸öÐèÒªÓõ½FCKeditorµÄÒ³ÃæµÄ<head></head>Ö®¼ä·ÅÖãº
<script type="text/javascript" src="<?=$base_url?>fck/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var fck = new FCKeditor('content');
fck.Width = "80%";
fck.Height = 300;
fck.BasePath = "<?=$base_url?>fck/";
fck.ReplaceTextarea() ;
}
</script> 
ÆäÖÐ<?=base_url()?>ÊÇCIÌṩµÄº¯Êý£¬·µ»Øµ±Ç°µÄ·ÃÎʵØÖ·£¬Èçhttp://localhost/virtaulpath/  µÄÐÎʽ
Èç¹û²»ÓÃ<?=base_url?>Ò²¿ÉÒÔÖ±½ÓʹÓÃ"http://localhost/ÏîĿĿ¼/fck/fckeditor"ÕâÑùµÄ·½Ê½
È»ºóÔÙÐèÒªÓõ½FCKeditorµÄµØ·½·ÅÖôúÂ룺
 <textarea name="content" rows="10" cols="80" style="width: 100%; height: 200px" >¿ªÊ¼±à¼­µÄÄÚÈÝ</textarea>
OK£¬ÄÇôÄã¾Í¿ÉÒÔʹÓÃ$this->input->post['content']µÄ·½Ê½»ñÈ¡FCKeditor±à¼­¹ýµÄÄÚÈÝÁË£¨ÔÚCIÖУ©£¬Ò²¿ÉÒÔʹÓÃ$_POST['content']µÄ·½Ê½»ñÈ¡ÄÚÈÝ¡£
µ±È»£¬ÔÚ»ñÈ¡ÄÚÈÝÖ®ºóÈç¹ûÒª´æ½øÊý¾Ý¿âµÄ»°¼ÇµÃʹÓÃhtmlentities ת»»£¨ÐèÒªÏÔʾ³ÉhtmlÐÎʽµÄÐèÒªÓÃhtml_entity_decode£©
Èç¹ûÄãÄܹ»¿´µ½FCKeditorÀàËÆofficeµÄ½çÃæµÄ»°£¬¾Í³É¹¦Ò»°ëÁË¡£
****************************************************************************************
֮ǰʵ¼ÊÉÏÓùýPHPµ÷ÓÃFCKeditorµÄ·½Ê½£¬µ«ÊǾõµÃ²»ºÃ£¬»¹ÊÇÓÃJSµ÷Ó÷½±ã£¬²»ÓÃÀí»áʹÓõÄÊÇʲôƽ̨£¬Ê²Ã´¿ò¼Ü¡£
FCKeditorÊÇÒ²·Ç³£Ç¿´óµÄ£¬ÆäÅäÖÃÊÇÔÚfckeditorÎļþ¼ÐϵÄfckconfig.jsÖÐ
¾ßÌåµÄÅäÖÿÉÒÔ²ÎÕÕ£º
Ìí¼Óɾ³ýFCKeditorµÄ¹¤¾ßÀ¸¿ÉÒÔÅäÖãºFCKConfig.ToolbarSets["Default"]
ÏÖÔÚµ½ÅäÖÃÉÏ´«Îļþ¡¢Í¼ÏñÁË£¬FCKeditorµÄÉÏ´«ÅäÖÃÊÇÔÚfckeditor/editor/filemanage/conector/php/config.phpÖУ¬´ò¿ªconfig.php²¢ÕÒµ½$Config['Enabled'] ²¢ÉèÖÃΪtrue ;
$Config['UserFilesPath'] = '/ÏîÄ¿Ãû/upload/' ;
ÕâÑùFCKeditor


Ïà¹ØÎĵµ£º

linux ÏÂphpµÄ°²×°

    
»·¾³Èí¼þ°æ±¾½éÉÜ£º
 
   APACHE 2.0.59
   PHP5.2.3
   MYSQL5.0.45
   GD-2.0.35
   Zend Optimizer v3.3.0
  
               &n ......

PHP¿ª·¢¹æ·¶£¡

Ò»¡¢¹æ·¶Ç°ÑÔƪ
±ê×¼»¯²»ÊÇÌØÊâµÄ¸öÈË·ç¸ñ£¬ËüÈóÌÐòÔ±¿ÉÒÔÁ˽âÈκδúÂ룬ŪÇå³ÌÐòµÄ×´¿ö£»ÐÂÈË¿É
ÒԺܿìµÄÊÊÓ¦»·¾³£»·ÀֹнӴ¥phpµÄÈËÒ»´Î´ÎµÄ·¸Í¬ÑùµÄ´íÎó£»ÔÚÒ»ÖµĿª·¢»·¾³Ï£¬
¿ÉÒÔ¼õÉÙÈËÃÇ·¸´íµÄ»ú»á¡£±¾¹æ·¶µÄ±ê×¼ÔÚ¾ø¶Ô¶àÊýÓ¦ÓÃÉÏΪ·ÂÕÕjava¼¼ÊõÌåϵ£¬ÒòΪ
java¼¼ÊõÌåϵÒÔÆäÖÚ¶à³É¹¦µÄ°¸Àý³ÉΪ´ó²¿·Ö¼ÆËã»úÓ¦Ó ......

ÓÃphpµÄcÀ©Õ¹±à³Ìµ÷Óà c³ÌÐòµÄ¶¯Ì¬Á´½Ó¿â


Ò».    Ê×ÏÈ×öÒ»¸ö¼òµ¥µÄsoÎļþ£º
    /**
     * hello.c
     * To compile, use following commands:
     *   gcc -O -c -fPIC -o hello.o hello.c
     *   gcc -shared ......

Apache Httpd PHP»·¾³´î½¨

Apache Httpd PHP»·¾³´î½¨
1¡¢°²×°Apache·þÎñÆ÷
2¡¢ÐÞ¸Ähttpd.conf ÖÐ ServerName localhost:9080 ºÍListen 9080
3¡¢°²×°PHP5,ÀàÐÍÑ¡ÔñApache2.*£¬Ñ¡ÔñApacheÅäÖÃÎļþĿ¼¡£
4¡¢ÐÞ¸Ähttpd.confÖÐPHP5Ôö¼ÓµÄÅäÖÃΪÈç¹ûÄÚÈÝ£º
    #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
  & ......

³ÏÕУºPHP³ÌÐòÔ±£¨º¼ÖÝ£©


¾ßÌåÒªÇó£º
1¡¢Ñ§Àú²»ÏÞ£¬¾ßÓÐ1ÄêÒÔÉÏPHP¿ª·¢¾­Ñ飬ÓдóÐÍÍøÕ¾¹¤×÷¾­Ñ飻
2¡¢ÊìϤ mysql£¬°üÀ¨Êý¾Ý¿âÉè¼Æ,ËÙ¶ÈÓÅ»¯£»
3¡¢ÊìϤJavaScript£¬XML£¬ajax£¬¾«Í¨Div+CSS£»
4¡¢¶Ô»¥ÁªÍøµÄ¼¼ÊõÓнÏÈ«ÃæÀí½â£¬ÄܶÀÁ¢Ó¦¸¶´ó·ÃÎÊÁ¿ÏÂÍøÕ¾µÄÉè¼ÆºÍ¿ª·¢¹¤×÷£»
5¡¢¾ßÓÐPHP»º´æ¼¼Êõ¡¢¾²Ì¬»¯Éè¼Æ·½ÃæµÄ¾­Ñ飬Äܹ»¶ÀÁ¢¿ª·¢ºǫ́£»
6 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ