公告版位
新版Blog peichengnote

目前分類:PHP (5)

瀏覽方式: 標題列表 簡短摘要

標準的dokuwiki語法加上上面的編輯器已經是很簡潔了。
但是如果要使用markdown來編輯的話,
可以使用下面plugin。

plugin:markdownextra [DokuWiki]
http://www.dokuwiki.org/plugin:markdownextra

Download and Installation
Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually.
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

順手紀錄一下

$t_title= mysql_real_escape_string(strip_tags(($_POST['t_title'])));
$t_body= mysql_real_escape_string(strip_tags(($_POST['t_body'])));
$t_date=date("Y-n-j H:i:s");
echo 'tt '.$t_title;
echo ' tb '.$t_body;

$to ="peicheng@peicheng.cc"; //收件者
//$subject = "test"; //信件標題
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

[PHP]JSON 中文亂碼

最近也在用python處理中文,也發現了Unicode 的問題,
通常存成utf-8的文件中文大多會/uxxxx。

由於最近的api都是使用json格式,
這次使用twitter api去做example。
下面示範呈現結果:

最近的碎碎唸
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


[PHP] MySQL 內的 function PASSWORD ()

拿起一本7年前的書,
裏面密碼驗證使用。

$query="SELECT user_id ,first_name FROM users WHERE username='$u' AND password=PASSWORD('$p')";

後來發現怎麼帳號密碼會不match呢?

peicheng 發表在 痞客邦 留言(0) 人氣()


 [php]php MySQL phpMyAdmin 中文亂碼utf8 設定

在header.html
加入

 

 
mysql連線的地方

peicheng 發表在 痞客邦 留言(0) 人氣()