PIXNET Logo登入

JS

跳到主文

Simple life, My Way

部落格全站分類:生活綜合

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 2月 14 週三 201813:27
  • wamp 3.1.0 x64 安裝及SSL憑證設定紀錄

因為一次跳電,使用原本的電腦主機板掛掉,連帶的系統C槽也一起掛掉,還好資料槽D跟E都沒事,只好趕快重新弄一台
前一版wamp是2.5版,php 5.5.12 、 mysql 5.6.17 、 apache 2.4.9
(繼續閱讀...)
文章標籤

js 發表在 痞客邦 留言(0) 人氣(3,232)

  • 個人分類:WAMP
▲top
  • 11月 20 週四 201419:50
  • 36

busy year
(繼續閱讀...)
文章標籤

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

  • 個人分類:隨想
▲top
  • 4月 30 週三 201418:08
  • WAMP x64 出現(OS 64)指定的網路名稱無法使用

安裝環境
windows 7 x64
wamp 2.4
apache 2.4.4
(繼續閱讀...)
文章標籤

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

  • 個人分類:WAMP
▲top
  • 2月 11 週二 201415:52
  • php 檔案上傳error code [handling file upload error code]

使用php時常會遇到要讓使用者上傳檔案的情況
除了在form要設定enctype="multipart/form-data"之外
 
還可以使用官方所提供的error_code來得知檔案上傳的情況
(繼續閱讀...)
文章標籤

js 發表在 痞客邦 留言(0) 人氣(4,446)

  • 個人分類:php
▲top
  • 11月 20 週三 201323:59
  • 35

內容待補
(繼續閱讀...)
文章標籤

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

  • 個人分類:隨想
▲top
  • 2月 23 週六 201314:17
  • big5系統 utf8網頁 move_uploaded_file 中文檔名上傳問題

utf-8 編碼網頁無法在 big5 系統正確處理中文檔名,原因在於 move_uploaded_file() 不能處理 utf-8 中文編碼,需利用 iconv() 函數作轉碼,解決方法如下:
(繼續閱讀...)
文章標籤

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

  • 個人分類:php
▲top
  • 2月 18 週一 201310:46
  • php陣列長度 array length

參考網址 http://php.net/manual/en/function.count.php
 
example:
$myArray = array('a', 'b', 'c');
(繼續閱讀...)
文章標籤

js 發表在 痞客邦 留言(0) 人氣(29,268)

  • 個人分類:php
▲top
  • 2月 18 週一 201310:39
  • phpmailer各個函式 method

參考網址 http://phpdocs.epesi.org/PHPMailer/PHPMailer.html
參考網址 http://phpmailer.worxware.com/index.php?pg=methods
 
A開頭:
        $AltBody --屬性
         出自:PHPMailer::$AltBody ,文件:class.phpmailer.php
         說明:該屬性的設置是在郵件正文不支持HTML的備用顯示
        AddAddress --方法
         出自:PHPMailer::AddAddress(),文件:class.phpmailer.php
         說明:增加收件人。參數1為收件人郵箱,參數2為收件人稱呼。例 AddAddress("mailto:xiaoxiaoxiaoyu@xiaoxiaoyu.cn%22,%22xiaoxiaoyu"),但參數2可 選,AddAddress(xiaoxiaoxiaoyu@xiaoxiaoyu.cn)也是可以的。函數原型:
         public function AddAddress($address, $name = '') {}
        AddAttachment--方法
         出自:PHPMailer::AddAttachment(),文件:class.phpmailer.php
         說明:增加附件。參數:路徑,名稱,編碼,類型。其中,路徑為必選,其他為可選
         函數原型:
         AddAttachment($path, $name = '', $encoding = 'base64', $type = 'application/octet-stream'){}
        AddBCC --方法
          出自:PHPMailer::AddBCC(),文件:class.phpmailer.php
         說明:增加一個密送。抄送和密送的區別請看[SMTP發件中的密送和抄送的區別] 。參數1為地址,參數2為名稱。注意此方法只支持在win32下使用SMTP,不支持mail函數
         函數原型:
         public function AddBCC($address, $name = ''){}
        AddCC --方法
         出自:PHPMailer::AddCC(),文件:class.phpmailer.php
         說明:增加一個抄送。抄送和密送的區別請看[SMTP發件中的密送和抄送的區別] 。參數1為地址,參數2為名稱注意此方法只支持在win32下使用SMTP,不支持mail函數
         函數原型:
         public function AddCC($address, $name = '') {}
        AddCustomHeader --方法
          出自:PHPMailer::AddCustomHeader(),文件:class.phpmailer.php
         說明:增加一個自定義的E-mail頭部。參數為頭部信息
         函數原型:
         public function AddCustomHeader($custom_header){}
        AddEmbeddedImage --方法
         出自:PHPMailer::AddEmbeddedImage(),文件:class.phpmailer.php
         說明:增加一個嵌入式圖片。參數:路徑,返回句柄[,名稱,編碼,類型]
         函數原型:
          public function AddEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {}
         提示: AddEmbeddedImage(PICTURE_PATH. "index_01.jpg ", "img_01 ", "index_01.jpg ");
         在html中引用
        AddReplyTo --方法
         出自:PHPMailer:: AddReplyTo(),文件:class.phpmailer.php
         說明:增加回覆標籤,如"Reply-to"。參數1地址,參數2名稱
         函數原型:
          public function AddReplyTo($address, $name = '') {}
        AddStringAttachment -方法
          出自:PHPMailer:: AddStringAttachment(),文件:class.phpmailer.php
         說明;增加一個字符串或二進制附件(Adds a string or binary attachment (non-filesystem) to the list.?)參數:字符串,文件名[,編碼,類型]
         函數原型:
         public function AddStringAttachment($string, $filename, $encoding = 'base64', $type = 'application/octet-stream') {}
        Authenticate --方法
         出自:SMTP::Authenticate(),文件:class.smtp.php
         說明:開始SMTP認證,必須在Hello()之後調用,如果認證成功,返回true,參數1用戶名,參數2密碼
         函數原型:
         public function Authenticate($username, $password) {}
B開頭
        $Body --屬性
         出自:PHPMailer::$Body 文件: class.phpmailer.php
         說明:郵件內容,HTML或Text格式
C開頭
        $CharSet --屬性
         出自:PHPMailer::$CharSet 文件:class.phpmailer.php
         說明:郵件編碼,默認為iso-8859-1
        $ConfirmReadingTo --屬性
         出自:PHPMailer::$ConfirmReadingTo 文件class.phpmailer.php
         說明:回執?
        $ContentType --屬性
         出自:PHPMailer::$ContentType 文件: class.phpmailer.php
         說明:文檔的類型,默認為"text/plain"
        $CRLF --屬性
         出自:PHPMailer::$ContentType 文件:class.phpmailer.php
         說明:SMTP回覆結束的分隔符(SMTP reply line ending?)
        class.phpmailer.php --對象
         出自:class.phpmailer.php 文件: class.phpmailer.php
         說明:phpmailer對象
        class.smtp.php --對象
         出自:class.smtp.php 文件: class.smtp.php
         說明:SMTP功能的對象
        ClearAddresses --方法
         出自:PHPMailer::ClearAddresses() 文件: class.phpmailer.php
         說明:清除收件人,為下一次發件做準備。返回類型是void
        ClearAllRecipients --方法
         出自:PHPMailer::ClearAllRecipients() 文件: class.phpmailer.php
         說明:清除所有收件人,包括CC(抄送)和BCC(密送)
        ClearAttachments --方法
         出自:PHPMailer::ClearAttachments() 文件: class.phpmailer.php
         說明:清楚附件
        ClearBCCs --方法
         出自:PHPMailer::ClearBCCs() 文件 class.phpmailer.php
         說明:清楚BCC (密送)
        ClearCustomHeaders --方法
         出自:PHPMailer::ClearCustomHeaders() 文件: class.phpmailer.php
         說明:清楚自定義頭部
        ClearReplyTos --方法
         出自:PHPMailer::ClearReplyTos() 文件: class.phpmailer.php
         說明:清楚回覆人
        Close --方法
         出自:SMTP::Close() 文件: class.smtp.php
         說明:關閉一個SMTP連接
        Connect --方法
         出自:SMTP::Connect() 文件: class.smtp.php
         說明:建立一個SMTP連接
(繼續閱讀...)
文章標籤

js 發表在 痞客邦 留言(0) 人氣(1,376)

  • 個人分類:php
▲top
  • 1月 29 週二 201311:28
  • linux update phpmyadmin 更新 升級

其實還蠻簡單的
我自己是用centos
1.先使用wget 下載最新版的phpmyadmin (寫此文章時是3.5.6版)
2.使用tar -zxvf 解壓縮
(繼續閱讀...)
文章標籤

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

  • 個人分類:Linux
▲top
  • 1月 29 週二 201310:49
  • php mysql_query mysqli set utf8 中文字變問號

出現亂碼或問題, 大概都是編碼的問題
1.在mysql server裡面的DB或table要設定為 utf8_general_ci 或 utf8_unicode_ci
2.在php的header要設定charset utf-8
3.使用mysql_query之前要先執行mysql_query("set names 'utf8'");
(繼續閱讀...)
文章標籤

js 發表在 痞客邦 留言(0) 人氣(4,543)

  • 個人分類:php
▲top
12...6»

個人頭像

js
暱稱:
js
分類:
生活綜合
好友:
累積中
地區:

文章分類

toggle IT (3)
  • WAMP (2)
  • Linux (4)
  • php (6)
  • 隨想 (48)
  • 未分類文章 (1)

近期文章

  • wamp 3.1.0 x64 安裝及SSL憑證設定紀錄
  • 36
  • WAMP x64 出現(OS 64)指定的網路名稱無法使用
  • php 檔案上傳error code [handling file upload error code]
  • 35
  • big5系統 utf8網頁 move_uploaded_file 中文檔名上傳問題
  • php陣列長度 array length
  • phpmailer各個函式 method
  • linux update phpmyadmin 更新 升級
  • php mysql_query mysqli set utf8 中文字變問號

參觀人氣

  • 本日人氣:
  • 累積人氣:

誰來我家

動態訂閱