[ php ] 25 九月, 2010 20:25

phpMyFAQ?????????, ?????????FAQ??. ????????,?????WYSIWYG??????????, ?????,????????????,????,?????,????,??, ??PDF,????,?????,??????, ?2003??????????, ?????2.6?

????????????
http://www.phpmyfaq.de/documentation.2.6.en.php 

??????

  1. ??????phpMyFAQ 2.6.8
    http://www.phpmyfaq.de/getfaq.php?number=2.6.8&ext=.tar.gz
  2. ?web?????????, ???PC?????????, ?????phpmyfaq-2.6.8
  3. ?????????????, ????777
    ?config/ ?????????, ???????777, ????????database.php??? 
    ?the directory attachments/
    ?the directory data/
    ?the directory images/
  4. ??install/setup.php
    ????????????????, ?????777,????????????,??????????????
  5. ?????????????, ???????, ??????????utf8_unicode_ci???, ????latin1???????????????????. ????default language??chinese tranditional
    phpmyfaq_install_1
  6. ??click????, ??????.
  7. ?????phpmyfaq???????????, ???????????UTF-8?, ??????UTF-8,???????latin, ???inc\Linkverifier.php??897?, ?
    return ($cron ? '' : utf8_decode($output));
    ??
    return ($cron ? '' : $output);
    ?????????.
  8. ?????????????????????????.
  9. ???????template?tpl??.
[ php ] 14 八月, 2009 15:55

configure php 5.2.10 --with-imap ???

checking for U8T_CANONICAL... no
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

 ??libc-client-devel?????
yum install libc-client-devel

 ??????????ssl?????????
--with-imap-ssl

 

 

[ php ] 25 六月, 2009 11:06

php??jason??xml

???????
http://tw.php.net/manual/en/tidy.isxml.php

???????????
if($doc = @DOMDocument::loadXML($post_result))

<?php

/**

 * ????XML?JSON?????
 * ????XML????JSON?????,????
 * ????????,???array
 * @author skendy  2008-12-16
 */

class checkStringFormat{
    var $arr;
    public $mark;
    /**
     * ????,???????
     *
     * @param string $str
     */

    function __construct($str){
        if($this->mark = $this->xml_parser($str)){
           $this->arr = $this->mark;
        }elseif ($this->mark = $this->json_parser($str)){
            $this->arr = $this->mark;
        }else {
            $this->arr = 'NULL';
        }
    }
 
    /**
     * ??XML??????
     *
     * @param string $str
     * @return ???????????,????false,???????XML??
     */

    function xml_parser($str){
        $xml_parser = xml_parser_create();
        if(!xml_parse($xml_parser,$str,true)){
            xml_parser_free($xml_parser);
            return false;
        }else {
            return (json_decode(json_encode(simplexml_load_string($str)),true));
        }
    } 

    /**
     * ??JSON??????
     *
     * @param string $str
     * @return ???????????,????false,???????JSON??
     */

    function json_parser($str){
        $arr = json_decode($str,true);
        if(gettype($arr) != "array"){
            return false;
        }else {
            return $arr;
        }
    }

    /**
     * ???????XML???JSON??
     *
     * @param string $str
     * @return unknown
     */

    function string_parser($str){
        $strArr = explode("&",$str);
        $len    = @count($strArr);
        if($len < 1){
            return false;
        }else{
            return false;
        }
    }

    /**
     * ???????
     */

    function display(){
        return $this->arr;
    }
}

?>

[ php ] 02 六月, 2009 19:08

???????????????????MySQL??????????????????????????????????????????????????????????????????????????????????????????????????????”UTF-8????”????

????????”??”?????PHP??????MySQL????????????????phpMyAdmin????MySQL?????????phpMyAdmin??????????????????????????phpMyAdmin?????????????????????

 (閱讀全文)

[ php ] 11 五月, 2009 11:07

??atmail ??????
atmail????????????, ?????????, ???????open source??, ???????, ????????, ???????, ???????????, ??????.

???????????, ???php4??????????, ??????php ?php5.2.9 ?????.????, ????????????????.

http://atmail.com/wiki/doku.php?id=installation:requirement#software_requirements

??atmail????, ??????????mail system, ???????webmail???, ??????5.61

????????:
http://atmail.com/wiki/doku.php?id=installation:webmail_client_installation

???????????

  1. ???/tmp???????????
  2. ???/var/www/html????????, ?????atmail???
    tar zxf atmailphpdemo.tar.gz
  3. chown -R apache atmail
  4. ?????????????
    http://ip/atmail
  5. ????????????????, ???????? php.ini???, ??atmail???ioncube???, ???????????, ????????????so?
    ?php.ini??????
    zend_extension= /var/www/html/atmail/ioncube/lin/ioncube_loader_lin_5.2.so
    ??apache
  6. ????????? 
  7. ??????????, ?????????, ??????create database
  8. smtp??, ???webmail????????, smtp host???localhost??
  9. ??????, ?????serial key????
  10. ???? squirrelmail????webmail????, ???????????????????webmail???, ?config????
  11. ???????????, ?????? .htaccess??, ????????????.
  12. ????, ???????
  13. ????????, ??????????????, ?http://ip/atmail/webadmin?chinese????, ???????.
  14. ??????????, ????lang/languages/chinese/chinese.lang, ??UTF-8???, ????????????
    php lang.php chinese lang/languages/chinese/chinese.lang
    ??????????????????????.
    ?????????????
    http://atmail.com/wiki/doku.php?id=customization:creating_new_language_file
    http://atmail.com/wiki/doku.php?id=customization:language_system
    http://atmail.com/wiki/doku.php?id=customization:language_translation
    http://atmail.com/wiki/doku.php?id=customization:interface_customization
  15. ?????????????????, ????????UTF-8, ?????????????, ?????. ????????????????????????????, ????????????.

????, ????????, ??????????????, ???support, ????????. ???????????.

[ php ] 10 四月, 2009 00:01

phpMyAdmin ????? UTF-8??????? Big5 ???????????????????
????:
php 5
MySQL 5.0.51
phpMyAdmin 2.11.9.5

??phpMyAdmin/libraries/select_lang.lib.php
$mysql_charset_map = array ??????? big5 ?? latin1

'big5'         => 'latin1'

$available_languages = array ??????big5???? zhtw-big5 ?? zhtw-big5-utf-8
? chinese traditional ?? chinese traditional big5

'zhtw-big5-utf-8'         => array('zh[-_](tw|hk)|chinese traditional big5', 'chinese_traditional-big5', 'zh-TW', '??'), 

????????? phpMyAdmin? Big5 ??? ?Language?????chinese traditional big5 ? chinese traditional ????, ????big5??????UTF-8??

 

[ php ] 09 四月, 2009 23:29

??IP?mask?????????IP?????IP, ??IP, Broadcast?Network  

#!/usr/local/bin/php

<?php
$ip_addr = "168.95.1.1";
$subnet_mask = "255.255.255.0";
$ip = ip2long($ip_addr);
$nm = ip2long($subnet_mask);
$nw = ($ip & $nm);
$bc = $nw | (~$nm);

echo "IP Address: " . long2ip($ip) . "n";
echo "Subnet Mask: " . long2ip($nm) . "n";
echo "Network Address: " . long2ip($nw) . "n";
echo "Broadcast Address: " . long2ip($bc) . "n";
echo "Number of Hosts: " . ($bc - $nw - 1) . "n";
echo "Host Range: " . long2ip($nw + 1) . " -> " . long2ip($bc - 1) . "n"; ?>
Produces the output:

IP Address: 172.14.1.57
Subnet Mask: 255.255.255.0
Network Address: 172.14.1.0
Broadcast Address: 172.14.1.255
Number of Hosts: 254
Host Range: 172.14.1.1 -> 172.14.1.254

?>

[ php ] 09 四月, 2009 19:04

???SEO ????????????LifeType??????

????????????????

??
http://wiki.lifetype.net/index.php/Custom_URLs

Tag:
????????????

  • {blogname}: Inserts the blog name. blog???
  • {blogid}: Inserts the blog numerical identifier.
  • {blogowner}: Inserts the username of the user who owns the blog. ????????????????????blog???
  • {username}: Inserts the username of the user.
  • {userid}: Inserts the numerical identifier of this user
  • {postname}: Inserts the topic of the article.
  • {postid}: Inserts the article numerical identifier.
  • {year}: Inserts the 4 digit year.
  • {month}: Inserts the 2 digit month.
  • {day}: Inserts the 2 digit day.
  • {hour}: Inserts the 2 digit hour.
  • {minute}: Inserst the 2 digit minutes.
  • {catid}: Inserts the article category name.
  • {catname}: Inserts the article category id.
  • {albumname}: Inserts the resource album name.
  • {albumid}: Inserts the resource album id.
  • {resourcename}: Inserts the resource file name.
  • {resourceid}: Inserts the resource numerical identifier.
  • ???????

    1. Apache ModReWrite ??? apache ? mod_rewrite ???? url ????? http://www.xxx.com/index.php?blogId=1 ????? http://www.xxx.com/your-blog ?????????????????? Apache ????????????
    2. ???????????? apache ? ErrorDocument ?????????????????? pLog ????????????????? http://www.xxx.com/your-blog ????????URL?? apache ??????? http://www.xxx.com/your-blog ?? error.php?error.php ??????????? ??? blogId, articleId ?????? request ?? index.php???? pLog ????????
    [ php ] 09 四月, 2009 14:17

    ??????????, ???????????LifeType 1.0.1????1.2.8? , ????????????, ??????, ???????????????????????, ??????

    ????
    ????? - config/config.properties.php
    ???? - ???????????
    ????? - ????phpmyadmin??????????(?????????)

    ???????plugin, ???????????, ??????????, ???????????, ????????? 

    1. ???????????standard?template
      ?????????????, ???????????, ??????????????standard??template
    2. ???LifeType 1.1.6
      1.0???????1.2, ????????1.1.6
      ??1.1.6???, ???
      ??config/config.properties.php ,?????????????
      ??config/config.properties.php ????777 (??wizard.php???)
      ??wizard.php , ?????fix , ?????ie, ?????wizard.php
      ????????, ???
    3. ???LifeType 1.2.8
      ????1.1.6?????
      ???? 
    4. ?wiazard.php??
      ??config/config.properties.php????644
      ??????????????
    5. ???????, ?????????????, ?????????
      ??????->??????->????->????->????
    6. ?????template.zip, ???
      ??????->??????->????->????
      ????????????????
    7. ?????plugin.zip?plugins???
    8. 1.2_print.zip ??????
      ???????????template???post.template, ??
      <a href="{$print->printView($post)}">Print View</a>
    9. Tommy?????????,????????????
      ?? ???????????? -> ?????? ???????
      ??plugin???locale?
      $messages["authimage_type_code"] = '??????????:';