2012年12月26日 星期三

Codeigniter相關參考

http://fuunkao-sekai.blogspot.tw/2011/11/codeigniter-baseurl.html

http://smartpg.pixnet.net/blog/post/25357570

https://sites.google.com/site/ageechen/work_notes/web-developing-in-php/codeigniter-mvc

http://blog.wu-boy.com/2009/08/codeigniter-%E5%88%86%E4%BA%AB%E4%B8%AD%E6%96%87%E5%AE%98%E6%96%B9%E7%B6%B2%E7%AB%99%E7%AF%84%E4%BE%8B%E7%A8%8B%E5%BC%8F%E7%A2%BC/

http://www.mrmu.com.tw/2009/10/07/codeigniter-%E5%BB%BA%E7%AB%8B%E7%B0%A1%E5%96%AE%E7%9A%84mvc%E6%9E%B6%E6%A7%8B%E7%AF%84%E4%BE%8B/

http://stackoverflow.com/questions/12808063/remove-index-php-of-codeigniter-on-iis

http://zeroplex.blogspot.tw/2012/06/codeigniter.html

http://www.hkpug.net/2008/03/03/%E6%95%99%E5%AD%B8%E6%96%87%E4%BB%B6%EF%BC%9Acodeigniter-%E5%BF%AB%E9%80%9F-php-%E6%87%89%E7%94%A8%E9%96%8B%E7%99%BC/

物件導向Object-Oriented的相關參考

http://expect7.pixnet.net/blog/post/38697222

http://www.php5.idv.tw/html.php?mod=article&do=show&shid=73

http://net.tutsplus.com/tutorials/php/object-oriented-php-for-beginners/comment-page-1/#comments

http://samueltsai.com/2012/01/18/php-object-oriented/

http://www.slideshare.net/jaceju/php-1104882

http://phpwolf.blogspot.tw/2011/05/php.html

敏捷開發法的逆襲的相關資訊

敏捷開發法的逆襲的讀後感及相關心得、scrum的相關參考資料
作者的blog
http://teddy-chen-tw.blogspot.tw/

讀後感
http://www.cash.idv.tw/wordpress/?p=7107
http://w1a2d3s4q5e6.blogspot.tw/2012/09/blog-post_13.html

scrum其他的參考
http://blog.longwin.com.tw/2006/12/learn_scrum_2006/


2012年12月19日 星期三

CodeIgniter網址移除index.php(IIS設定法)

最近也開始嘗試使用CodeIgniter這個framework.
其中有一個問題就是怎麼移除網址中的index.php.
google上大多是apache的作法.
Stackoverflow的討論串提到的IIS的設定方法如下:
1.在CI所在的目錄下建立一個web.config檔
2.web.config的內容如下:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>

    <system.webServer>

        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>

        <rewrite>
        <rules>
            <rule name="RuleRemoveIndex" stopProcessing="true">
                <match url="^(.*)$" ignoreCase="false" />
                <conditions>
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                </conditions>
                <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true"/>
            </rule>
        </rules>
        </rewrite>

    </system.webServer>

    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>

</configuration>


3.存檔後,網址就可以不用包含index.php了

原文來源:
http://stackoverflow.com/questions/12808063/remove-index-php-of-codeigniter-on-iis


2012年12月18日 星期二

利用PHPMailer發信

PHP內建的mail函示僅能從php.ini設定SMTP Server並不支援指定SMTP的方式

因此強大的PHPMailer就派上用場了

以下是參考來源:

PHPMailer元件下載位置:
http://sourceforge.net/projects/phpmailer/

使用教學:
教學一:B E L L E A Y A 雜七雜八創作小窩

教學二:艾瑞克的回憶錄

教學三:寶尼

2012年12月2日 星期日

Internet Explorer 無法從 SSL 網站開啟 Office 文件

今天有客戶反應無法從網站下載xls報表.但之前都是正常的.
經過一番測試發現原來是SSL的影響.
之前網站尚未安裝SSL憑證.
報表的程式裡面有防止快取的程式碼
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1

把這些註解掉.IE在SSL的協定下就可以正常的下載xls報表了
參考:
http://support.microsoft.com/kb/316431