[ php ]
25 九月, 2010 20:25
phpMyFAQ install ??
phpMyFAQ?????????, ?????????FAQ??. ????????,?????WYSIWYG??????????, ?????,????????????,????,?????,????,??, ??PDF,????,?????,??????, ?2003??????????, ?????2.6?
????????????
http://www.phpmyfaq.de/documentation.2.6.en.php
??????
- ??????phpMyFAQ 2.6.8
http://www.phpmyfaq.de/getfaq.php?number=2.6.8&ext=.tar.gz
- ?web?????????, ???PC?????????, ?????phpmyfaq-2.6.8
- ?????????????, ????777
?config/ ?????????, ???????777, ????????database.php???
?the directory attachments/
?the directory data/
?the directory images/
- ??install/setup.php
????????????????, ?????777,????????????,??????????????
- ?????????????, ???????, ??????????utf8_unicode_ci???, ????latin1???????????????????. ????default language??chinese tranditional
- ??click????, ??????.
- ?????phpmyfaq???????????, ???????????UTF-8?, ??????UTF-8,???????latin, ???inc\Linkverifier.php??897?, ?
return ($cron ? '' : utf8_decode($output));
??
return ($cron ? '' : $output);
?????????.
- ?????????????????????????.
- ???????template?tpl??.
[ php ]
14 八月, 2009 15:55
php ?? --with-imap ????? U8T_CANONICAL missing
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
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?phpMyAdmin???UTF8?????????
???????????????????MySQL??????????????????????????????????????????????????????????????????????????????????????????????????????”UTF-8????”????
????????”??”?????PHP??????MySQL????????????????phpMyAdmin????MySQL?????????phpMyAdmin??????????????????????????phpMyAdmin?????????????????????
(閱讀全文)
[ php ]
11 五月, 2009 11:07
atmail demo php 5.61 ?? install
??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
???????????
- ???/tmp???????????
- ???/var/www/html????????, ?????atmail???
tar zxf atmailphpdemo.tar.gz
- chown -R apache atmail
- ?????????????
http://ip/atmail
- ????????????????, ???????? php.ini???, ??atmail???ioncube???, ???????????, ????????????so?
?php.ini??????
zend_extension= /var/www/html/atmail/ioncube/lin/ioncube_loader_lin_5.2.so
??apache
- ?????????
- ??????????, ?????????, ??????create database
- smtp??, ???webmail????????, smtp host???localhost??
- ??????, ?????serial key????
- ???? squirrelmail????webmail????, ???????????????????webmail???, ?config????
- ???????????, ?????? .htaccess??, ????????????.
- ????, ???????
- ????????, ??????????????, ?http://ip/atmail/webadmin?chinese????, ???????.
- ??????????, ????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
- ?????????????????, ????????UTF-8, ?????????????, ?????. ????????????????????????????, ????????????.
????, ????????, ??????????????, ???support, ????????. ???????????.
[ php ]
10 四月, 2009 00:01
?phpMyAdmin????big5?UTF-8????
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
??PHP??IP????????IP
??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
LifeType ???? ??Custom URL
???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.
???????
- Apache ModReWrite ??? apache ? mod_rewrite ???? url ????? http://www.xxx.com/index.php?blogId=1 ????? http://www.xxx.com/your-blog ?????????????????? Apache ????????????
- ???????????? 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.2 install????
??????????, ???????????LifeType 1.0.1????1.2.8? , ????????????, ??????, ???????????????????????, ??????
????
????? - config/config.properties.php
???? - ???????????
????? - ????phpmyadmin??????????(?????????)
???????plugin, ???????????, ??????????, ???????????, ?????????
-
???????????standard?template
?????????????, ???????????, ??????????????standard??template
-
???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
????????, ???
-
???LifeType 1.2.8
????1.1.6?????
????
-
?wiazard.php??
??config/config.properties.php????644
??????????????
-
???????, ?????????????, ?????????
??????->??????->????->????->????
-
?????template.zip, ???
??????->??????->????->????
????????????????
-
?????plugin.zip?plugins???
-
1.2_print.zip ??????
???????????template???post.template, ??
<a href="{$print->printView($post)}">Print View</a>
-
Tommy?????????,????????????
?? ???????????? -> ?????? ???????
??plugin???locale?
$messages["authimage_type_code"] = '??????????:';