<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4972272594064215040</id><updated>2024-11-01T18:37:41.816+08:00</updated><category term="PHP"/><category term="Dreamweaver"/><category term="新書介紹"/><category term="APP"/><category term="MySQL"/><category term="Android"/><category term="App Inventor"/><category term="CS5"/><category term="PHPMailer"/><category term="SMTP"/><category term="線上郵寄"/><category term="ASP.net"/><category term="BOM"/><category term="CS4"/><category term="CSV"/><category term="Gmail"/><category term="JSP"/><category term="Swift"/><category term="XLS"/><category term="Youtube"/><category term="iOS"/><category term="亂數"/><category term="檔案管理"/><category term="正規式表達法"/><category term="目錄管理"/><category term="編碼"/><category term="陣列"/><title type='text'>織夢平台+</title><subtitle type='html'>繼續織夢，繼續成長 Dreamweaver.com.tw</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-1418486056669891502</id><published>2016-06-14T10:32:00.000+08:00</published><updated>2016-06-14T10:32:09.253+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BOM"/><category scheme="http://www.blogger.com/atom/ns#" term="CSV"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="XLS"/><category scheme="http://www.blogger.com/atom/ns#" term="編碼"/><title type='text'>[PHP] 用PHP產生CSV檔案並下載 (並解決亂碼問題)</title><content type='html'>&lt;h2&gt;
主要參考&lt;/h2&gt;
1. 除了 header 的下法，其中還有亂碼產生的原因，以及加入BOM的方式說明&lt;br /&gt;&lt;a href=&quot;http://chiahan.logdown.com/posts/280868/web-php-export-csv-chinese-encoding-problem&quot;&gt;http://chiahan.logdown.com/posts/280868/web-php-export-csv-chinese-encoding-problem&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. 加入BOM的寫法，在 header 之後用 echo 加入 &quot;\xEF\xBB\xBF&quot;&lt;br /&gt;&lt;a href=&quot;http://stackoverflow.com/questions/4348802/how-can-i-output-a-utf-8-csv-in-php-that-excel-will-read-properly&quot;&gt;http://stackoverflow.com/questions/4348802/how-can-i-output-a-utf-8-csv-in-php-that-excel-will-read-properly&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;
相關參考&lt;/h2&gt;
&lt;div&gt;
1. CSV、XLS 等文件輸出格式&lt;br /&gt;&lt;a href=&quot;https://dotblogs.com.tw/yuru.wei/2011/06/27/30251&quot;&gt;https://dotblogs.com.tw/yuru.wei/2011/06/27/30251&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. 連接資料庫輸出的參考&lt;br /&gt;&lt;a href=&quot;http://www.centerbbs.com/forum.php?mod=viewthread&amp;amp;tid=143119&quot;&gt;http://www.centerbbs.com/forum.php?mod=viewthread&amp;amp;tid=143119&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2&gt;
心得&lt;/h2&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;原來使用 iconv() 方式來將 utf8 轉 big5 編碼，在資料庫輸出資料時，如果遇到 big5 無法編碼的文字，會略過該筆資料 (對，是略過喔，很可怕！)。&lt;/li&gt;
&lt;li&gt;如果使用 mb_convert_encoding() 來轉碼，遇到 big5 無法編碼的文字會以「?」來顯示。&lt;/li&gt;
&lt;li&gt;根據&amp;nbsp;&lt;a href=&quot;http://chiahan.logdown.com/posts/280868/web-php-export-csv-chinese-encoding-problem&quot;&gt;http://chiahan.logdown.com/posts/280868/web-php-export-csv-chinese-encoding-problem&lt;/a&gt;&amp;nbsp;一文的內容，程式中就不用 iconv() 或 mb_convert_encoding() 來轉碼，直接在文件前加入 BOM 來宣告編碼方式，如此一來輸出的 CSV 檔在 Excel 或記事本中開啟都會是正常的。&lt;/li&gt;
&lt;li&gt;XLS 檔雖然也可以輸出，但用 Excel 開啟時反而會有警告視窗，說格式不符，不如使用 CSV 檔較為方便。&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/1418486056669891502/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2016/06/php-phpcsv.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/1418486056669891502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/1418486056669891502'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2016/06/php-phpcsv.html' title='[PHP] 用PHP產生CSV檔案並下載 (並解決亂碼問題)'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-7098632953798407801</id><published>2015-04-07T23:42:00.002+08:00</published><updated>2015-04-07T23:42:54.371+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="亂數"/><title type='text'>[PHP] 生成不重覆的隨機數字</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinpZChI2Qf6U1Kl9bQETtQxtRXBLwaL2_29nhKGIaewjHNA_-xOaKqOQaDtCq9pADaTpO_CAStpmDMcN82UXWbJMYv-g4FaftIJ2r1qSJ1fW3gJB1kGBKNV2uVx6iLJXOv7OuhkjlW_WQ/s1600/phpcodesnippets.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinpZChI2Qf6U1Kl9bQETtQxtRXBLwaL2_29nhKGIaewjHNA_-xOaKqOQaDtCq9pADaTpO_CAStpmDMcN82UXWbJMYv-g4FaftIJ2r1qSJ1fW3gJB1kGBKNV2uVx6iLJXOv7OuhkjlW_WQ/s1600/phpcodesnippets.jpg&quot; height=&quot;271&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h4&gt;
說明&lt;/h4&gt;
如何一次生成不重覆的隨機數字，以下分享這個程式片段：&lt;br /&gt;
&lt;h4&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;h4&gt;
程式碼內容&lt;/h4&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;?php
/*
* array unique_rand( int $min, int $max, int $num )
* 生成一定數量的不重複隨機數
* $min 和 $max: 指定隨機數的範圍
* $num: 指定生成數量
*/
function unique_rand($min, $max, $num) {
    $count = 0;
    $return = array();
    while ($count &amp;lt; $num) {
        $return[] = mt_rand($min, $max);
        $return = array_flip(array_flip($return));
        $count = count($return);
    }
    shuffle($return);
    return $return;
}

$arr = unique_rand(1, 25, 16);
sort($arr);

$result = &#39;&#39;;
for($i=0; $i &amp;lt; count($arr);$i++)
{
    $result .= $arr[$i].&#39;,&#39;;
}
$result = substr($result, 0, -1);
echo $result;
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/7098632953798407801/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2015/04/php_7.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/7098632953798407801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/7098632953798407801'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2015/04/php_7.html' title='[PHP] 生成不重覆的隨機數字'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinpZChI2Qf6U1Kl9bQETtQxtRXBLwaL2_29nhKGIaewjHNA_-xOaKqOQaDtCq9pADaTpO_CAStpmDMcN82UXWbJMYv-g4FaftIJ2r1qSJ1fW3gJB1kGBKNV2uVx6iLJXOv7OuhkjlW_WQ/s72-c/phpcodesnippets.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-5456245296491298690</id><published>2015-04-07T23:37:00.002+08:00</published><updated>2015-04-07T23:37:38.833+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="檔案管理"/><category scheme="http://www.blogger.com/atom/ns#" term="目錄管理"/><category scheme="http://www.blogger.com/atom/ns#" term="陣列"/><title type='text'>[PHP] 將目錄下所有圖片的檔名存入陣列中</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinpZChI2Qf6U1Kl9bQETtQxtRXBLwaL2_29nhKGIaewjHNA_-xOaKqOQaDtCq9pADaTpO_CAStpmDMcN82UXWbJMYv-g4FaftIJ2r1qSJ1fW3gJB1kGBKNV2uVx6iLJXOv7OuhkjlW_WQ/s1600/phpcodesnippets.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinpZChI2Qf6U1Kl9bQETtQxtRXBLwaL2_29nhKGIaewjHNA_-xOaKqOQaDtCq9pADaTpO_CAStpmDMcN82UXWbJMYv-g4FaftIJ2r1qSJ1fW3gJB1kGBKNV2uVx6iLJXOv7OuhkjlW_WQ/s1600/phpcodesnippets.jpg&quot; height=&quot;271&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;h4&gt;
說明&lt;/h4&gt;
如何一次取得程式所在目錄下的所有圖檔檔名並存入陣列中，以下分享這個程式片段：&lt;br /&gt;
&lt;h4&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;h4&gt;
程式碼內容&lt;/h4&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;function listImages($dirname=&quot;.&quot;) {
   $ext = array(&quot;jpg&quot;, &quot;png&quot;, &quot;jpeg&quot;, &quot;gif&quot;);
   $files = array();
   if($handle = opendir($dirname)) {
       while(false !== ($file = readdir($handle)))
           for($i=0;$i&amp;lt;sizeof($ext);$i++)
               if(strstr($file, &quot;.&quot;.$ext[$i]))
                   $files[] = $file;
 
       closedir($handle);
   }
   return($files);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/5456245296491298690/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2015/04/php.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/5456245296491298690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/5456245296491298690'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2015/04/php.html' title='[PHP] 將目錄下所有圖片的檔名存入陣列中'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinpZChI2Qf6U1Kl9bQETtQxtRXBLwaL2_29nhKGIaewjHNA_-xOaKqOQaDtCq9pADaTpO_CAStpmDMcN82UXWbJMYv-g4FaftIJ2r1qSJ1fW3gJB1kGBKNV2uVx6iLJXOv7OuhkjlW_WQ/s72-c/phpcodesnippets.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-7264025344529835888</id><published>2015-01-28T10:06:00.000+08:00</published><updated>2015-01-28T10:06:01.301+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dreamweaver"/><category scheme="http://www.blogger.com/atom/ns#" term="新書介紹"/><title type='text'>[新書上市]  Dreamweaver CC網頁製作比你想的簡單：HTML5、CSS3、jQuery、Facebook、行動網站 全面應用</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdCgBYJRwCqUp_6ip5Vhh8MvmzO_aL6dBiIjtmvqzTHUaxRgmiPAdumE8lKWosxCDlB79qRod9_xeby85TVFwWZIqzkyolqRZwV4W9oHwmh9DwOfLKmA0ISEtKcerBWJW3v7bGazgjLBg/s1600/ACU068200-news.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdCgBYJRwCqUp_6ip5Vhh8MvmzO_aL6dBiIjtmvqzTHUaxRgmiPAdumE8lKWosxCDlB79qRod9_xeby85TVFwWZIqzkyolqRZwV4W9oHwmh9DwOfLKmA0ISEtKcerBWJW3v7bGazgjLBg/s1600/ACU068200-news.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; background-image: url(http://www.e-happy.com.tw/images/star.png); background-position: 0px 50%; background-repeat: no-repeat; color: #ff3300; font-family: Arial, Helvetica, sans-serif; font-size: 1.7em; line-height: 32px; padding-left: 36px;&quot;&gt;
本書特色&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;行動優先&lt;/strong&gt;：新一代的 Dreamweaver CC整合網頁製作最新技術，輕鬆操控HTML5、CSS3、jQuery、Facebook、行動網站的全新應用，讓創意跨越桌面與行動裝置。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;擁抱雲端&lt;/strong&gt;：讓豐富的雲端資源成為網站的無窮助力，加入影音百匯 Youtube或是線上地圖 Google Maps，就能立即提升網站實用度。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;專業加值&lt;/strong&gt;： 身為網頁設計師，不但要滿足客戶的需求，更要能提出符合潮流的創新概念！讓網站呈現與眾不同的氣勢&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;超值加贈&lt;/strong&gt;：全書影音教學＋完整範例檔&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
如果你有以下問題，請立即翻開本書&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
•想製作符合不同螢幕尺寸、跨平台的網頁？&lt;br /&gt;•想做出有設計感專業的網站？&lt;br /&gt;•如何加入吸引人的圖片展示、影片串流、音樂播放的特效？&lt;br /&gt;•想要在網站中加入影音平台、社群互動卻一籌莫展？&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
Dreamweaver 新增或刪除了哪些功能？本書完整剖析內容不容錯過&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
•流變格線版面、媒體查詢應用解決不同螢幕尺寸的開發問題&lt;br /&gt;•jQuery Mobile 無痛上手行動裝置網頁開發&lt;br /&gt;•不會寫程式碼也能直上HTML5網頁開發，立即套用CSS3時尚特效&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
本書將以一個完整的網站為範例架構，帶你從無到有打造出專業又實用的網站。不但要認識網頁設計觀念、網站開發流程及規劃、軟體的使用與全新功能，並引導應用進階程式完成更多網頁的特效。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
1.雙效合一的影音教學：從專案規劃、資料收集、網頁製作、網站上傳與推廣維護各個重要階段步驟，搭配書本內容及實例練習，搭配學習效果加倍。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
2.HTML5、CSS3全範例導引：不需艱深的程式碼去說明新技術！利用範例帶您領略HTML5與CSS3的全新魅力，製作出CP值超高的新網頁。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
3.Facebook 社群工具的導入：走出網站經營的寂寞，用力的擁抱您的粉絲。加入Facebook的社群工具，讓網站增添滿滿的人氣！&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
4.全新 jQuery UI 工具集：加快開發高效能的互動操作介面，改善網頁與使用者的使用經驗。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
5.跨平台的網頁開發：不再只有桌面瀏覽，帶領您開發出能在平板電腦與智慧型手機上使用的網站，全面進入行動式裝置的應用。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
6.自我練習檢視學習進度：提供全書範例檔及習作檔讓你跟著書籍步驟建置完整網站並可檢視學習進度。&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; background-image: url(http://www.e-happy.com.tw/images/star.png); background-position: 0px 50%; background-repeat: no-repeat; color: #ff3300; font-family: Arial, Helvetica, sans-serif; font-size: 1.7em; line-height: 32px; padding-left: 36px;&quot;&gt;
本書目錄&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 01 跨越不同平台的網頁設計軟體&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 02 開始規劃網站&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 03 記錄旅行的起點 - 文字與影像&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 04 熱門景點的介紹 - 超連結的設定&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 05 旅遊資訊的分享 - 表格的使用&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 06 旅行點滴的雜記 - CSS 的設計&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 07 地圖展示 - 絕對定位圖層與行為&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 08 重現感動的片刻 - 多媒體的呈現&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 09 與我聯絡的介面 - 表單的加入&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 10 範本應用&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 11 網站檔案發佈與維護&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 12 整合雲端工具&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 13 使用 CSS Div 網頁排版&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 14 jQuery UI 工具集&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
chapter 15 行動裝置網頁的設計&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: 12px; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot; valign=&quot;top&quot; width=&quot;180&quot;&gt;&lt;img alt=&quot;網頁製作&quot; border=&quot;0&quot; class=&quot;bookCoverL&quot; src=&quot;http://www.e-happy.com.tw/images/bookimg/ACU068200-cover.jpg&quot; style=&quot;height: 200px; margin-right: 10px; padding: 10px; width: 150px;&quot; /&gt;&lt;img alt=&quot;新書&quot; height=&quot;20&quot; src=&quot;http://www.e-happy.com.tw/images/stat_new.gif&quot; width=&quot;65&quot; /&gt;&amp;nbsp;&lt;img alt=&quot;推薦&quot; height=&quot;20&quot; src=&quot;http://www.e-happy.com.tw/images/stat_push.gif&quot; width=&quot;65&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;bookTitleName&quot; style=&quot;border-bottom-color: rgb(153, 153, 153); border-bottom-style: dotted; border-bottom-width: 1px; color: #0190ba; font-size: 1.3em; font-weight: bolder; margin-bottom: 5px; margin-right: 10px;&quot;&gt;
&lt;span class=&quot;bookTitleType&quot; style=&quot;color: #f34783; font-size: 0.75em;&quot;&gt;網頁製作&lt;/span&gt;&lt;br /&gt;Dreamweaver CC 網頁製作比你想的簡單&lt;/div&gt;
&lt;div class=&quot;bookinfo&quot; style=&quot;background-color: #e1ffff; color: #009999; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bolder; letter-spacing: 0.1em; line-height: 20px; margin: 2px 15px 2px 5px; padding: 5px;&quot;&gt;
作者：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;文淵閣工作室&lt;/span&gt;&lt;br /&gt;出版社：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;碁峰&lt;/span&gt;&lt;br /&gt;書號：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;ACU068200&lt;/span&gt;　ISBN：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;9789863475262&lt;/span&gt;&lt;br /&gt;頁數：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;388&lt;/span&gt;&amp;nbsp;頁&lt;br /&gt;定價：$&amp;nbsp;&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;450&lt;/span&gt;元&lt;br /&gt;出版日期：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;2015年1月27日&lt;/span&gt;&lt;br /&gt;附書光碟：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;全書影音教學、完整範例檔&lt;/span&gt;&lt;br /&gt;相關連結：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;&lt;a href=&quot;http://www.books.com.tw/exep/assp.php/edreamer/products/0010663585?loc=002_011&amp;amp;utm_source=edreamer&amp;amp;utm_medium=ap-books&amp;amp;utm_content=recommend&amp;amp;utm_campaign=ap-201501&quot; style=&quot;color: #017698; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;購書連結&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/7264025344529835888/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2015/01/dreamweaver-cchtml5css3jqueryfacebook.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/7264025344529835888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/7264025344529835888'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2015/01/dreamweaver-cchtml5css3jqueryfacebook.html' title='[新書上市]  Dreamweaver CC網頁製作比你想的簡單：HTML5、CSS3、jQuery、Facebook、行動網站 全面應用'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdCgBYJRwCqUp_6ip5Vhh8MvmzO_aL6dBiIjtmvqzTHUaxRgmiPAdumE8lKWosxCDlB79qRod9_xeby85TVFwWZIqzkyolqRZwV4W9oHwmh9DwOfLKmA0ISEtKcerBWJW3v7bGazgjLBg/s72-c/ACU068200-news.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-3484695786980035144</id><published>2015-01-28T09:56:00.000+08:00</published><updated>2015-01-28T10:00:58.391+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="APP"/><category scheme="http://www.blogger.com/atom/ns#" term="App Inventor"/><category scheme="http://www.blogger.com/atom/ns#" term="新書介紹"/><title type='text'>[新書上市] &quot;中文版&quot; App Inventor 2 零基礎入門班上市！</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfnPq5cGhIp6LhWepH39Guf4_27wD66QUvNP86F4_fYfXPQHeoGYhbF1UI1XhyjOuDvpaECCBZtBop4gMUz6d7-lyd91eSILjTaSq47L4v0Z_8aYRgxjk3iWS9a4CoTN8tlESi-uZYB70/s1600/acl044100_news.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfnPq5cGhIp6LhWepH39Guf4_27wD66QUvNP86F4_fYfXPQHeoGYhbF1UI1XhyjOuDvpaECCBZtBop4gMUz6d7-lyd91eSILjTaSq47L4v0Z_8aYRgxjk3iWS9a4CoTN8tlESi-uZYB70/s1600/acl044100_news.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; background-image: url(http://www.e-happy.com.tw/images/star.png); background-position: 0px 50%; background-repeat: no-repeat; color: #ff3300; font-family: Arial, Helvetica, sans-serif; font-size: 1.7em; line-height: 32px; padding-left: 36px;&quot;&gt;
本書特色&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: red;&quot;&gt;★★★★★超重量級注目經典&lt;strong&gt;(中文介面增訂版，全中文介面解說&lt;/strong&gt;)★★★★★&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
掌握App開發的捷徑，輕鬆打好基本功！&lt;br /&gt;
現在立即啟動App Inventor 2！縮短50%的App學習與開發時間！&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
Google實驗室設計，由麻省理工學院(MIT)行動學習中心維護的App Inventor，風靡無數App開發者、一般App玩家，以及學校師生。以直覺、圖像化的拼塊方式開發App，成為任何人都適用的快速開發工具。App Inventor 2改善開發環境與流程，簡化了拼塊的使用與設定，無論是否具備程式設計背景，都可以更輕鬆的入門。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;好學、易用，又強大!&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
快速邁向Android的App之路！超簡單的App Inventor實戰體驗！&lt;br /&gt;
本書就像App Inventor 2一樣容易上手！&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■ 適用無程式設計經驗，或想打好App Inventor基礎者。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■ 適合學校每週固定時數的課程，抑或是讀者自我固定時數的學習。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■ 將拼塊式的快速開發方式融入主流學習中，並按部就班引領學習者進入App開發的殿堂。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■ 設計簡易而實用的小範例，以養成邏輯概念，紮下良好基礎，並快速感受 App Inventor在行動裝置的應用性。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■ 範例多元且容易完成，涵蓋多媒體及動畫、網際網路、資料庫、感測器，甚至還有電話聯絡人與語音辨識，讓許多功能都可以快速的展現。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;★超值全彩印刷，易看易學易開發!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;★超值光碟內容：「App Inventor 2新手入門教室」影音教學/「App Inventor 2單機版與伺服器架設」說明PDF/完整範例&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; background-image: url(http://www.e-happy.com.tw/images/star.png); background-position: 0px 50%; background-repeat: no-repeat; color: #ff3300; font-family: Arial, Helvetica, sans-serif; font-size: 1.7em; line-height: 32px; padding-left: 36px;&quot;&gt;
本書目錄&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px;&quot;&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;01用拼塊拼出你的App&lt;/strong&gt;&lt;br /&gt;
App Inventor 2使用拼塊的方式進行程式的開發，搭配好用的各式元件，即使完全未接觸過程式設計者也能開發功能強大的應用程式。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;02使用者介面元件&lt;/strong&gt;&lt;br /&gt;
標籤、 文字方塊、 按鈕、 圖片及滑桿元件用法十分簡單，只要設定屬性就能達到很好的顯示效果。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;03基礎運算&lt;/strong&gt;&lt;br /&gt;
一般加、減、乘、除等數學運算，稱為算術運算。字串在處理時也能將多個字串連接成一個字串稱為字串運算。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;04流程控制&lt;/strong&gt;&lt;br /&gt;
執行程式通常是循序執行，就是依照程式碼一列一列依次執行；但有時需依情況不同而執行不同程式碼，其依據的原則就是「判斷式」。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;05程序&lt;/strong&gt;&lt;br /&gt;
在開發時會將具有特定功能或經常重複使用的程式拼塊，稱為程序，當程式需要程序時，呼叫程序名稱就可執行該程序的程式拼塊。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;06清單與物件清單&lt;/strong&gt;&lt;br /&gt;
在 App Inventor 2的設計中，清單的使用可以取代大量變數，增進程式執行時的效能。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;07多媒體&lt;/strong&gt;&lt;br /&gt;
照相機、圖片選擇器、音效、音訊播放器、錄音機、攝影機及視訊播放器元件為行動裝置加入多媒體的呈現。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;08計時器&lt;/strong&gt;&lt;br /&gt;
計時器元件可以不同方式取得系統時間，同時提供許多時間相關的方法，用來顯示時間的年、月、日、星期幾、時、分、秒。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;09繪圖與動畫&lt;/strong&gt;&lt;br /&gt;
畫布元件可以繪製圖形，圖片精靈及球形精靈屬於繪圖動畫類別元件，使用時必須配合畫布元件。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;10網際網路應用&lt;/strong&gt;&lt;br /&gt;
Web瀏覽器元件主要用來顯示指定的網頁內容，Web客戶端元件可以將資料以 Get、Post等方式傳遞到指定網址，再將資料讀取回來。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;11資料庫&lt;/strong&gt;&lt;br /&gt;
微資料庫元件將資料儲存於本機的資料庫，網路微資料庫元件則是將資料儲存於雲端，開發者可以視資料庫的需求來進行存取。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;12感測器&lt;/strong&gt;&lt;br /&gt;
行動載具特有的加速度感測器、位置感測器和方向感測器元件，能讓App更加不同。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;13電話、簡訊與聯絡人&lt;/strong&gt;&lt;br /&gt;
行動裝置可以利用電話、簡訊與聯絡人的資料來擷取聯絡人資料、撥打電話、發送簡訊。&lt;/div&gt;
&lt;div style=&quot;padding-left: 20px;&quot;&gt;
&lt;strong&gt;14語音辨識&lt;/strong&gt;&lt;br /&gt;
語音辨識是智慧型手機的一大特色，技術發展至今已達實用階段，準確度能被大部分使用者接受。&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;color: black; font-size: 12px; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot; valign=&quot;top&quot; width=&quot;180&quot;&gt;&lt;img alt=&quot;APP開發&quot; border=&quot;0&quot; class=&quot;bookCoverL&quot; src=&quot;http://www.e-happy.com.tw/images/bookimg/acl044100_cover.jpg&quot; style=&quot;height: 200px; margin-right: 10px; padding: 10px; width: 150px;&quot; /&gt;&lt;img alt=&quot;新書&quot; height=&quot;20&quot; src=&quot;http://www.e-happy.com.tw/images/stat_new.gif&quot; width=&quot;65&quot; /&gt;&amp;nbsp;&lt;img alt=&quot;推薦&quot; height=&quot;20&quot; src=&quot;http://www.e-happy.com.tw/images/stat_push.gif&quot; width=&quot;65&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;bookTitleName&quot; style=&quot;border-bottom-color: rgb(153, 153, 153); border-bottom-style: dotted; border-bottom-width: 1px; color: #0190ba; font-size: 1.3em; font-weight: bolder; margin-bottom: 5px; margin-right: 10px;&quot;&gt;
&lt;span class=&quot;bookTitleType&quot; style=&quot;color: #f34783; font-size: 0.75em;&quot;&gt;APP開發&lt;/span&gt;&lt;br /&gt;App Inventor 2零基礎入門班(中文介面增訂版)&lt;/div&gt;
&lt;div class=&quot;bookinfo&quot; style=&quot;background-color: #e1ffff; color: #009999; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bolder; letter-spacing: 0.1em; line-height: 20px; margin: 2px 15px 2px 5px; padding: 5px;&quot;&gt;
作者：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;文淵閣工作室&lt;/span&gt;&lt;br /&gt;出版社：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;碁峰&lt;/span&gt;&lt;br /&gt;書號：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;ACL044100&lt;/span&gt;　ISBN：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;9789863475118&lt;/span&gt;&lt;br /&gt;頁數：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;352&lt;/span&gt;&amp;nbsp;頁&lt;br /&gt;定價：$&amp;nbsp;&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;420&lt;/span&gt;元&lt;br /&gt;出版日期：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;2015年1月28日&lt;/span&gt;&lt;br /&gt;附書光碟：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;「App Inventor 2新手入門教室」影音教學/「App Inventor 2單機版與伺服器架設」說明PDF/完整範例&lt;/span&gt;&lt;br /&gt;相關連結：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;&lt;a href=&quot;http://www.books.com.tw/exep/assp.php/edreamer/products/0010663590?loc=002_012&amp;amp;utm_source=edreamer&amp;amp;utm_medium=ap-books&amp;amp;utm_content=recommend&amp;amp;utm_campaign=ap-201501&quot; style=&quot;color: #017698; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;購書連結&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/3484695786980035144/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2015/01/app-inventor-2_28.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/3484695786980035144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/3484695786980035144'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2015/01/app-inventor-2_28.html' title='[新書上市] &quot;中文版&quot; App Inventor 2 零基礎入門班上市！'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfnPq5cGhIp6LhWepH39Guf4_27wD66QUvNP86F4_fYfXPQHeoGYhbF1UI1XhyjOuDvpaECCBZtBop4gMUz6d7-lyd91eSILjTaSq47L4v0Z_8aYRgxjk3iWS9a4CoTN8tlESi-uZYB70/s72-c/acl044100_news.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-2649175590671242902</id><published>2015-01-28T09:40:00.001+08:00</published><updated>2015-01-28T09:58:27.488+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="APP"/><category scheme="http://www.blogger.com/atom/ns#" term="App Inventor"/><category scheme="http://www.blogger.com/atom/ns#" term="新書介紹"/><title type='text'>[新書上市] &quot;中文版&quot; App Inventor 2 初學特訓班上市！</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOLeXErHWysONfzgHyAZ4AGULzyJESGcSKc4vMUjFv0LObKhNBGCI_T4dJu-ZdNsN6lH4tZ1tO-JHU-FddOnNFLjxBc-OrM1OxPvAggEJqTP4KFlMv_3ufMxdUsFXRX7u6t_h4wRBVpVY/s1600/acl044200_news.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOLeXErHWysONfzgHyAZ4AGULzyJESGcSKc4vMUjFv0LObKhNBGCI_T4dJu-ZdNsN6lH4tZ1tO-JHU-FddOnNFLjxBc-OrM1OxPvAggEJqTP4KFlMv_3ufMxdUsFXRX7u6t_h4wRBVpVY/s1600/acl044200_news.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; background-image: url(http://www.e-happy.com.tw/images/star.png); background-position: 0px 50%; background-repeat: no-repeat; color: #ff3300; font-family: Arial, Helvetica, sans-serif; font-size: 1.7em; line-height: 32px; padding-left: 36px;&quot;&gt;
本書特色&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: red;&quot;&gt;★★★★★超重量級注目經典&lt;strong&gt;(中文介面增訂版，全中文介面解說&lt;/strong&gt;)★★★★★&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
引領App Inventor風潮的經典App創意開發主題書！從入門、應用到上架全攻略！&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;strong&gt;★前版榮獲Amazon上架App Inventor中文書/網路書店年度電腦暢銷書/最多讀者與老師指名的App Inventor旗艦書！★&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
現在立即啟動App Inventor 2！縮短50%的App學習與開發時間！&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
Google實驗室設計，由麻省理工學院(MIT)行動學習中心維護的App Inventor，風靡無數App開發者、一般App玩家，以及學校師生。視覺化介面加上拼塊拖曳的簡單操作方式，輕易就能建構出App的介面與功能，並能控制手機上的相機、GPS 與多種感測器，製作出更具創意的App。App Inventor 2改善開發環境與流程，簡化拼塊使用與設定，除了可在電腦模擬之外，也能在Android手機或平板電腦上執行，更可以上傳到Google Play商店。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
快速邁向Android的App之路!超強的App Inventor開發體驗!&lt;br /&gt;結合App主題開發的攻略指引，立即享受Google Play上架的樂趣!&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■適用想一次從入門應用跨入專案開發者。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■簡單入門後，即依功能主題提供實例演練，最後再延伸至App專案開發。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■專案範例兼具趣味性與實用性，運用大量媒體音效，增加生動性，也適度結合照相、簡訊、感測器等行動裝置的硬體功能，展現App Inventor 2快速且強大的App開發特色。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
■App開發加碼創意、全新包裝，融合10、熱門與經典主題App，內容涵蓋QR Code、繪圖、動畫、硬體、影音、導覽、娛樂、遊戲、知識、通訊、語音、資料庫，以及網路資源等生活與實務應用。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;★超值全彩印刷，易看易學易開發!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;★超值光碟內容：「App Inventor 2新手入門教室」影音教學/「App Inventor 2單機版與伺服器架設」說明PDF/完整範例&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; background-image: url(http://www.e-happy.com.tw/images/star.png); background-position: 0px 50%; background-repeat: no-repeat; color: #ff3300; font-family: Arial, Helvetica, sans-serif; font-size: 1.7em; line-height: 32px; padding-left: 36px;&quot;&gt;
本書目錄&lt;/h2&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;01開發 Android App的新利器&lt;/strong&gt;&lt;br /&gt;App Inventor 2使用拼圖模式來組合程式，搭配好用的各式元件，即使完全未接觸過的程式設計者，也能開發功能強大的Android App。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;02基本元件與運算&lt;/strong&gt;&lt;br /&gt;基本元件除了能控管應用程式與使用者互動，並且經過精心安排介面元件，就能設計出賞心悅目的使用者介面。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;03 程式拼塊與流程控制&lt;/strong&gt;&lt;br /&gt;判斷式能讓執行程式依情況不同而執行不同程式碼；迴圈能處理程式中重複的工作；陣列，能解決儲存大量同類型資料的問題。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;04 自訂程序及內建程序&lt;/strong&gt;&lt;br /&gt;自訂程序及內建程序能將具有特定功能或經常使用的程式拼塊，撰寫成獨立的小單元。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;05 繪圖與動畫&lt;/strong&gt;&lt;br /&gt;ImageSprite及 Ball是App Inventor 2為動畫和遊戲所量身打造的元件，使用時必須配合Canvas元件。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;06 App專題：打雪怪遊戲&lt;/strong&gt;&lt;br /&gt;「打雪怪遊戲」是以打地鼠遊戲架構為依據進行開發，但整個遊戲場景是在冰天雪地中，月夜裡雪人和雪怪會不斷出沒。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;07 App專題：打磚塊&lt;/strong&gt;&lt;br /&gt;「打磚塊」是利用基本的碰撞原理製作，若熟悉遊戲運作原理，要製作較複雜的打磚塊關卡也非難事。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;08 App專題：生活照心情塗鴉&lt;/strong&gt;&lt;br /&gt;「生活照心情塗鴉」可以在拍攝的相片上進行塗鴉，或是加上心情圖示，是相當有趣實用的範例。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;09 App專題：電子羅盤&lt;/strong&gt;&lt;br /&gt;「電子羅盤」即是善用OrientationSensor元件的功能來製作一個真實可用的電子羅盤。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;10 App專題：QR Code 二維條碼&lt;/strong&gt;&lt;br /&gt;「QR Code二維條碼」已經普及到日常生活中，在App Inventor 2的專題中可以很輕鬆加入或是讀取QR Code的功能。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;11 App專題：我愛圓仔&lt;/strong&gt;&lt;br /&gt;「我愛圓仔」是利用元件將圓仔網頁資料顯示於瀏覽器中，相關的基本資料、相片、影片及導航一應俱全。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;12 App專題：手機搖搖樂&lt;/strong&gt;&lt;br /&gt;「手機搖搖樂」是利用手機搖動時觸發加速度感應器的Shaking事件，進行計次的動作。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;13 App專題：滾球遊戲&lt;/strong&gt;&lt;br /&gt;「滾球遊戲」專題最主要是以加速度感測器來控制球的滾動，結合一些數理知識，遊戲中利用計時器控制黑色球洞不停順時針旋轉，增加遊戲的趣味性與難度。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;14 App專題：相片通訊錄&lt;/strong&gt;&lt;br /&gt;「相片通訊錄」專題利用Camera元件直接照相後存入資料庫，再結合PhoneCall及Texting元件，使用者點按相片就能打電話及發簡訊。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;15 App專題：英文語音測驗&lt;/strong&gt;&lt;br /&gt;「英文語音測驗」 專題使用語音辨識及語音合成元件，設計選擇題式英文聽力測驗。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;strong&gt;Appendix A Google Play上架全攻略&lt;/strong&gt;&lt;br /&gt;為了讓Android開發者有一個發表的園地，Google公司建立Google Play商店做為Android使用者共享的樂園。&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 13.1999998092651px; line-height: 19.7999992370605px; padding-left: 20px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: 12px; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot; valign=&quot;top&quot; width=&quot;180&quot;&gt;&lt;img alt=&quot;APP開發&quot; border=&quot;0&quot; class=&quot;bookCoverL&quot; src=&quot;http://www.e-happy.com.tw/images/bookimg/acl044200_cover.jpg&quot; style=&quot;height: 200px; margin-right: 10px; padding: 10px; width: 150px;&quot; /&gt;&lt;img alt=&quot;新書&quot; height=&quot;20&quot; src=&quot;http://www.e-happy.com.tw/images/stat_new.gif&quot; width=&quot;65&quot; /&gt;&amp;nbsp;&lt;img alt=&quot;推薦&quot; height=&quot;20&quot; src=&quot;http://www.e-happy.com.tw/images/stat_push.gif&quot; width=&quot;65&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;bookTitleName&quot; style=&quot;border-bottom-color: rgb(153, 153, 153); border-bottom-style: dotted; border-bottom-width: 1px; color: #0190ba; font-size: 1.3em; font-weight: bolder; margin-bottom: 5px; margin-right: 10px;&quot;&gt;
&lt;span class=&quot;bookTitleType&quot; style=&quot;color: #f34783; font-size: 0.75em;&quot;&gt;APP開發&lt;/span&gt;&lt;br /&gt;App Inventor 2初學特訓班(中文介面增訂版)&lt;/div&gt;
&lt;div class=&quot;bookinfo&quot; style=&quot;background-color: #e1ffff; color: #009999; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bolder; letter-spacing: 0.1em; line-height: 20px; margin: 2px 15px 2px 5px; padding: 5px;&quot;&gt;
作者：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;文淵閣工作室&lt;/span&gt;&lt;br /&gt;出版社：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;碁峰&lt;/span&gt;&lt;br /&gt;書號：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;ACL044200&lt;/span&gt;　ISBN：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;9789863475101&lt;/span&gt;&lt;br /&gt;頁數：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;352&lt;/span&gt;&amp;nbsp;頁&lt;br /&gt;定價：$&amp;nbsp;&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;420&lt;/span&gt;元&lt;br /&gt;出版日期：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;2015年1月28日&lt;/span&gt;&lt;br /&gt;附書光碟：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;「綜合演練」影音教學/「App Inventor 2單機版與伺服器架設」說明PDF/完整範例&lt;/span&gt;&lt;br /&gt;相關連結：&lt;span class=&quot;important&quot; style=&quot;color: #cc3300; font-weight: normal;&quot;&gt;&lt;a href=&quot;http://www.books.com.tw/exep/assp.php/edreamer/products/0010663591?loc=002_004&amp;amp;utm_source=edreamer&amp;amp;utm_medium=ap-books&amp;amp;utm_content=recommend&amp;amp;utm_campaign=ap-201501&quot; style=&quot;color: #017698; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;購書連結&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/2649175590671242902/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2015/01/app-inventor-2.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/2649175590671242902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/2649175590671242902'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2015/01/app-inventor-2.html' title='[新書上市] &quot;中文版&quot; App Inventor 2 初學特訓班上市！'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOLeXErHWysONfzgHyAZ4AGULzyJESGcSKc4vMUjFv0LObKhNBGCI_T4dJu-ZdNsN6lH4tZ1tO-JHU-FddOnNFLjxBc-OrM1OxPvAggEJqTP4KFlMv_3ufMxdUsFXRX7u6t_h4wRBVpVY/s72-c/acl044200_news.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-6367217257989662766</id><published>2015-01-27T00:08:00.003+08:00</published><updated>2015-01-27T23:29:25.855+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="APP"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Swift"/><category scheme="http://www.blogger.com/atom/ns#" term="新書介紹"/><title type='text'>[新書介紹] Swift初學特訓班：iOS App開發快速養成與實戰</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirNud3PCeCkp-bRN1zMX63oFWQ0dhOVEFT5otTCEMJ8uMiW6DIb2nTA2iu-mZfLukGAd3BmLShDfFS8ldeU75xyM78gqN-5UTEbRPivBEjFxU25e7zfmr-3fxrVvrcdjbP6QPrE-TR5D4/s1600/2015002.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirNud3PCeCkp-bRN1zMX63oFWQ0dhOVEFT5otTCEMJ8uMiW6DIb2nTA2iu-mZfLukGAd3BmLShDfFS8ldeU75xyM78gqN-5UTEbRPivBEjFxU25e7zfmr-3fxrVvrcdjbP6QPrE-TR5D4/s1600/2015002.jpg&quot; height=&quot;272&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;★入門必學NO.1★&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;
超越同主題書的學習視野！豈止於快！&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
跳脫傳統程式語法學習框架，依手機App開發特性啟動最佳學習模式。&lt;br /&gt;
掌握Swift活用奧義，從62個範例快速打好iOS App開發力！&lt;br /&gt;
開啟Apple設計模式，掌握Swift關鍵精髓，直擊iOS App快速開發新思維！&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Swift是由Apple推出，用來撰寫OS X和iOS應用程式的新工具，訴求快速、現代、安全、互動，成為初學者開發iOS App的首選工具。書中依Swift語言特性與應用定位歸納學習架構，提供匠心獨具的學習動線，無非就是期望讓初學者一次開發就上手。&lt;br /&gt;
&lt;br /&gt;
iOS App開發一點訣！不侷限在語法，直接從實例學。&lt;br /&gt;
真正的切入Swift應用，而非紙上談兵！&lt;br /&gt;
&lt;br /&gt;
如果您很熟悉程式語言，或許可選擇一般單純講解Swift程式的書籍；如果您是初學者，則可以試著從本書切入，免除學而不會用的困擾，享受超高效率的學習C/P值。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;相關網址：&lt;a href=&quot;http://www.e-happy.com.tw/indexbookshow.asp?bid=248&quot;&gt;http://www.e-happy.com.tw/indexbookshow.asp?bid=248&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;購買網址 &lt;a href=&quot;http://www.books.com.tw/exep/assp.php/edreamer/products/0010659620?loc=002_005&amp;amp;utm_source=edreamer&amp;amp;utm_medium=ap-books&amp;amp;utm_content=recommend&amp;amp;utm_campaign=ap-201412&quot; target=&quot;_blank&quot;&gt;博客來&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/6367217257989662766/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2015/01/swiftios-app.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/6367217257989662766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/6367217257989662766'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2015/01/swiftios-app.html' title='[新書介紹] Swift初學特訓班：iOS App開發快速養成與實戰'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirNud3PCeCkp-bRN1zMX63oFWQ0dhOVEFT5otTCEMJ8uMiW6DIb2nTA2iu-mZfLukGAd3BmLShDfFS8ldeU75xyM78gqN-5UTEbRPivBEjFxU25e7zfmr-3fxrVvrcdjbP6QPrE-TR5D4/s72-c/2015002.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-4033414855506990164</id><published>2013-09-18T22:49:00.001+08:00</published><updated>2015-01-28T00:42:15.980+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Youtube"/><category scheme="http://www.blogger.com/atom/ns#" term="正規式表達法"/><title type='text'>[PHP] 取得 Youtube 影片檔的網址</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYgRmMuSpSRuND01sqzujqpBdzr7OYG-CMjdWHd4pe7jywl6HSS-MZaRkO3nZUTuD0PR25dUgS32lOmEuptdPJ8GCXpGTXafDUvH7LYwUIbRgXxD5Nh3mtongsESlUd97BBjD4YAy3hm8/s1600/2015003.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYgRmMuSpSRuND01sqzujqpBdzr7OYG-CMjdWHd4pe7jywl6HSS-MZaRkO3nZUTuD0PR25dUgS32lOmEuptdPJ8GCXpGTXafDUvH7LYwUIbRgXxD5Nh3mtongsESlUd97BBjD4YAy3hm8/s1600/2015003.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h4&gt;
說明&lt;/h4&gt;
因為開發的需求，茶米希望可以由 Youtube 的播放網址，直接取得 Youtube 影片的真實網址，除了可以直接化為影片的下載網址，也可以設定為一些播放器的影片來源路徑。在網址上找到了這個程式碼，實在是很好用喔！&lt;br /&gt;
&lt;h4&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;h4&gt;
程式碼內容&lt;/h4&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;?php
$file = $_GET[&quot;file&quot;];
if (preg_match(&#39;/youtube\.com\/(v\/|watch\?v=)([\w\-]+)/&#39;, $file, $match)) {
    ;
    $id     = $match[2];
    $link   = &quot;http://www.youtube.com/watch?v=&quot; . $id;
    $html   = file_get_contents($link);
    $html   = urldecode($html);
    $h      = explode(&#39;fmt_stream_map&#39;, $html);
    $html   = urldecode($h[1]);
    $videos = explode(&#39;url=&#39;, $html);
    for ($i = 0; $i &amp;lt; count($videos); $i++) {
        $t1   = explode(&quot;;&quot;, $videos[$i]);
        $link = $t1[0];
        $t1   = explode(&quot;itag=&quot;, $link);
        $t2   = explode(&quot;&amp;amp;&quot;, $t1[1]);
        $tip  = $t2[0];
        if ($tip == &quot;37&quot;)
            break;
        if ($tip == &quot;22&quot;)
            break;
        if ($tip == &quot;18&quot;)
            break;
    }
}
print $link;
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
參考來源


&lt;/h4&gt;
&lt;a href=&quot;http://weng32002.blogspot.tw/2012/02/aszcc-youtube-ims.html&quot;&gt;http://weng32002.blogspot.tw/2012/02/aszcc-youtube-ims.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/4033414855506990164/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2013/09/php-youtube.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/4033414855506990164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/4033414855506990164'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2013/09/php-youtube.html' title='[PHP] 取得 Youtube 影片檔的網址'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYgRmMuSpSRuND01sqzujqpBdzr7OYG-CMjdWHd4pe7jywl6HSS-MZaRkO3nZUTuD0PR25dUgS32lOmEuptdPJ8GCXpGTXafDUvH7LYwUIbRgXxD5Nh3mtongsESlUd97BBjD4YAy3hm8/s72-c/2015003.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-1660699867687450691</id><published>2012-03-26T23:29:00.001+08:00</published><updated>2015-01-28T00:49:48.268+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>[PHP] 如何取得即時匯率?</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY1Fw8pcq1xYsis65mJFMrnhEBNke4oTDTWfqggpsohUNezucXqrh8rieSrQrNMytNpuFuJvc1_SH7mXN255e1eVxUvsTUeLEWLGlNJvl-sf6OOi7eVW9tLdQ1k45uBQ67kKhWJJpvd7E/s1600/2015004.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY1Fw8pcq1xYsis65mJFMrnhEBNke4oTDTWfqggpsohUNezucXqrh8rieSrQrNMytNpuFuJvc1_SH7mXN255e1eVxUvsTUeLEWLGlNJvl-sf6OOi7eVW9tLdQ1k45uBQ67kKhWJJpvd7E/s1600/2015004.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
分享一個取得即時匯率的小程式片段，不錯用喔!&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;?php
$from = &#39;USD&#39;;  // 美元 
$to = &#39;TWD&#39;; // 新台幣 
//重點只有這行 知道匯率擷取的位址
$uri = &#39;http://finance.yahoo.com/d/quotes.csv?e=.csv&amp;amp;f=sl1d1t1&amp;amp;s=&#39;. $from . $to .&#39;=X&#39;; 
$content = file_get_contents($uri); 
$content = explode(&#39;,&#39;, $content); 
echo &quot;$from =&amp;gt; $to 匯率: &quot;.$content[1];
echo &quot;&amp;lt;br&amp;gt;&quot;;
echo &quot;匯率擷取時間: &quot;.$content[2].$content[3];
$rate = $content[1];
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/1660699867687450691/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/03/php.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/1660699867687450691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/1660699867687450691'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/03/php.html' title='[PHP] 如何取得即時匯率?'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY1Fw8pcq1xYsis65mJFMrnhEBNke4oTDTWfqggpsohUNezucXqrh8rieSrQrNMytNpuFuJvc1_SH7mXN255e1eVxUvsTUeLEWLGlNJvl-sf6OOi7eVW9tLdQ1k45uBQ67kKhWJJpvd7E/s72-c/2015004.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-7387407179777537831</id><published>2012-03-04T01:08:00.001+08:00</published><updated>2012-03-04T01:17:37.383+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>[MySQL] 改善SQL敘述句中使用JOIN而拖慢顯示速度</title><content type='html'>最近茶米在開發 PHP + MySQL 的案子時，因為有些複雜的查詢必須使用多個資料表之間的關聯，並有統計的動作。此時在 MySQL 的 SQL 敘述句中就必須要使用到 LEFT JOIN 與統計指令，有統計指令就必須還要加上 GROUP BY 的指令。&lt;br /&gt;
問題來了，當資料量少時，客戶並沒有什麼感覺。但累積到一定的資料量時，在開啟頁面顯示資料時就十分的緩慢，並且也造成了主機的負擔。以 5000 筆左右的查詢結果，竟然要花到 14 秒以上，這會讓使用者感到系統是否有問題，或是程式是否有誤。&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;茶米查詢了一些網頁的資料並且進行實作，再把茶米的解決的方法整理如下，如果您也遇到這樣的問題，可以依據以下的方式來解決：&lt;br /&gt;
檢查相關聯的資料表，是否使用相同的儲存引擎。例如一個使用 MyISAM，另一個使用 InnoDB，會造成關聯後顯示的速度。&lt;br /&gt;
將關鍵的資料表使用的欄位設為索引鍵，例如二個資料表中使用編號欄位為關聯鍵，檢查二方資料表是否都對於該欄位建立索引。(這個最有效)&lt;br /&gt;
選取的欄位若為文字欄位，也可加入索引。&lt;br /&gt;
如此即可改善查詢的效率。&lt;br /&gt;
&lt;br /&gt;
相關網址：&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.cnblogs.com/arlen/archive/2007/11/01/946250.html&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #192666; font-family: verdana, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;http://www.cnblogs.com/arlen/archive/2007/11/01/946250.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.lslnet.com/linux/f/docs1/i31/big5242479.htm&quot; style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #192666; font-family: verdana, sans-serif; font-size: 12px; line-height: 19px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify;&quot;&gt;http://www.lslnet.com/linux/f/docs1/i31/big5242479.htm&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/7387407179777537831/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/03/mysql-sqljoin.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/7387407179777537831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/7387407179777537831'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/03/mysql-sqljoin.html' title='[MySQL] 改善SQL敘述句中使用JOIN而拖慢顯示速度'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-8904778574045428169</id><published>2012-03-04T00:46:00.003+08:00</published><updated>2012-03-04T00:53:06.529+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Gmail"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="PHPMailer"/><category scheme="http://www.blogger.com/atom/ns#" term="SMTP"/><category scheme="http://www.blogger.com/atom/ns#" term="線上郵寄"/><title type='text'>[PHP] 如何利用 Gmail 的SMTP 發信(使用PHPMailer)</title><content type='html'>在上一篇(&lt;a href=&quot;http://edreamertw.blogspot.com/2012/03/php-smtpphpmailer.html&quot; target=&quot;_blank&quot;&gt;[PHP] 線上發信如何通過驗證的SMTP(使用PHPMailer)&lt;/a&gt;) 中我們討論到如何使用 PHPMailer 類別來通過驗證的伺服器，其實如果您下載了PHPMailer並解開壓縮後，可以在&amp;lt;examples&amp;gt;資料夾中看到各個不同狀況下使用 PHPMailer 來發信的程式碼，其中&amp;lt;test_gmail.php&amp;gt;就是使用 PHPMailer透過Gmail的範例。&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;茶米整理一下在這裡分享給大家：&lt;br /&gt;
&lt;div&gt;&lt;pre class=&quot;codeblock prettyprint&quot;&gt;&amp;lt;?php
include(&quot;class.phpmailer.php&quot;); //匯入PHPMailer類別       

$mail= new PHPMailer(); //建立新物件        
$mail-&amp;gt;IsSMTP(); //設定使用SMTP方式寄信        
$mail-&amp;gt;SMTPAuth = true; //設定SMTP需要驗證        
$mail-&amp;gt;SMTPSecure = &quot;ssl&quot;; // Gmail的SMTP主機需要使用SSL連線   
$mail-&amp;gt;Host = &quot;smtp.gmail.com&quot;; //Gamil的SMTP主機        
$mail-&amp;gt;Port = 465;  //Gamil的SMTP主機的SMTP埠位為465埠。        
$mail-&amp;gt;CharSet = &quot;big5&quot;; //設定郵件編碼        

$mail-&amp;gt;Username = &quot;*********&quot;; //設定驗證帳號        
$mail-&amp;gt;Password = &quot;*********&quot;; //設定驗證密碼        

$mail-&amp;gt;From = XXX@XXX.XXX.XXX; //設定寄件者信箱        
$mail-&amp;gt;FromName = &quot;測試人員&quot;; //設定寄件者姓名        

$mail-&amp;gt;Subject = &quot;PHPMailer 測試信件&quot;; //設定郵件標題        
$mail-&amp;gt;Body = &quot;大家好,       
這是一封測試信件!       
&quot;; //設定郵件內容        
$mail-&amp;gt;IsHTML(true); //設定郵件內容為HTML        
$mail-&amp;gt;AddAddress(&quot;david@e-happy.com.tw&quot;, &quot;茶米&quot;); //設定收件者郵件及名稱        

if(!$mail-&amp;gt;Send()) {        
echo &quot;Mailer Error: &quot; . $mail-&amp;gt;ErrorInfo;        
} else {        
echo &quot;Message sent!&quot;;        
}    
?&amp;gt;&lt;/pre&gt;&lt;br /&gt;
註：&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;PHP 必須安裝 OpenSSL 的擴充程式。 最好使用php 5以上，因為php 4 ，有OpenSSL的bug…，然後phpmailer 使用2.1 以上版本for php 5/6。&lt;/li&gt;
&lt;li&gt;關於openssl的安裝方式可以參考一下這篇文章&quot;&lt;a href=&quot;http://blog.yogo.tw/2009/08/phpopenssl.html&quot;&gt;php安裝openssl的方法&lt;/a&gt; &quot;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/8904778574045428169/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/03/php-gmail-smtp-phpmailer.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/8904778574045428169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/8904778574045428169'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/03/php-gmail-smtp-phpmailer.html' title='[PHP] 如何利用 Gmail 的SMTP 發信(使用PHPMailer)'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-5684450494116636250</id><published>2012-03-04T00:20:00.005+08:00</published><updated>2012-03-04T00:38:50.221+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="PHPMailer"/><category scheme="http://www.blogger.com/atom/ns#" term="SMTP"/><category scheme="http://www.blogger.com/atom/ns#" term="線上郵寄"/><title type='text'>[PHP] 線上發信如何通過驗證的SMTP(使用PHPMailer)</title><content type='html'>在 PHP 中可以使用 mail() 函式進行信件的發送，但是前提是您必須使用一個不用驗證即可寄信的 SMTP。 &lt;br /&gt;
如果您必須使用一個需要帳號、密碼來通過驗證的 SMTP，就不能使用 mail() 函式了。 &lt;br /&gt;
如果您不想再額外的安裝 PEAR 函式庫，建議您可以採用 opensource 的類別：phpMailer。&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;phpMailer 官方網站&lt;br /&gt;
&lt;a href=&quot;http://phpmailer.codeworxtech.com/&quot;&gt;http://phpmailer.codeworxtech.com/&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
您可以在此下載 phpMailer 的類別： &lt;br /&gt;
&lt;a href=&quot;http://phpmailer.codeworxtech.com/index.php?pg=sf&amp;amp;p=dl&quot;&gt;http://phpmailer.codeworxtech.com/index.php?pg=sf&amp;amp;p=dl&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
建議您依據您使用的 PHP 版本來下載適合的類別。 &lt;br /&gt;
下載完畢後請解壓縮到指定資料夾中， &lt;br /&gt;
其中重要的類別檔案為：， &lt;br /&gt;
請將這個檔案放置與寄發信件程式同一層。 &lt;br /&gt;
&lt;br /&gt;
以下茶米簡單寫的一個範例：&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;codeblock prettyprint&quot;&gt;&amp;lt;?php
include(&quot;class.phpmailer.php&quot;); //匯入PHPMailer類別 &amp;nbsp;
&amp;nbsp;
$mail= new PHPMailer(); //建立新物件 &amp;nbsp; 
$mail-&amp;gt;IsSMTP(); //設定使用SMTP方式寄信 &amp;nbsp; 
$mail-&amp;gt;SMTPAuth = true; //設定SMTP需要驗證 &amp;nbsp; 
$mail-&amp;gt;Host = &quot;XXX.XXX.XXX.XXX&quot;; //設定SMTP主機 &amp;nbsp; 
$mail-&amp;gt;Port = 25; //設定SMTP埠位，預設為25埠。 &amp;nbsp; 
$mail-&amp;gt;CharSet = &quot;big5&quot;; //設定郵件編碼 &amp;nbsp; 
&amp;nbsp;
$mail-&amp;gt;Username = &quot;*********&quot;; //設定驗證帳號 &amp;nbsp; 
$mail-&amp;gt;Password = &quot;*********&quot;; //設定驗證密碼 &amp;nbsp; 
&amp;nbsp;
$mail-&amp;gt;From = XXX@XXX.XXX.XXX; //設定寄件者信箱 &amp;nbsp; 
$mail-&amp;gt;FromName = &quot;測試人員&quot;; //設定寄件者姓名 &amp;nbsp; 
&amp;nbsp;
$mail-&amp;gt;Subject = &quot;PHPMailer 測試信件&quot;; //設定郵件標題 &amp;nbsp; 
$mail-&amp;gt;Body = &quot;大家好, &amp;nbsp;
這是一封測試信件! &amp;nbsp;
&quot;; //設定郵件內容 &amp;nbsp; 
$mail-&amp;gt;IsHTML(true); //設定郵件內容為HTML &amp;nbsp; 
$mail-&amp;gt;AddAddress(&quot;david@e-happy.com.tw&quot;, &quot;茶米&quot;); //設定收件者郵件及名稱 &amp;nbsp; 
&amp;nbsp;
if(!$mail-&amp;gt;Send()) { &amp;nbsp; 
echo &quot;Mailer Error: &quot; . $mail-&amp;gt;ErrorInfo; &amp;nbsp; 
} else { &amp;nbsp; 
echo &quot;Message sent!&quot;; &amp;nbsp; 
}
?&amp;gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/5684450494116636250/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/03/php-smtpphpmailer.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/5684450494116636250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/5684450494116636250'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/03/php-smtpphpmailer.html' title='[PHP] 線上發信如何通過驗證的SMTP(使用PHPMailer)'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-2757217922556628992</id><published>2012-03-01T10:05:00.001+08:00</published><updated>2012-03-04T01:18:29.800+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CS5"/><category scheme="http://www.blogger.com/atom/ns#" term="Dreamweaver"/><title type='text'>[DW] Dreamweaver CS5 互動網站的定義方式</title><content type='html'>許多朋友反應 Dreamweaver CS5 的網站定義，跟過去差好多。的確是如此，茶米也摸了一些時間，以下分享一下他設定的方法。在 DW CS5 中定義網站已經沒有精靈了，都是用進階的方式來設定，以下茶米用比較簡單的方法來說明，如何在本機新增一個測試伺服器的方式。&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;由功能表 &lt;b&gt;網站 &amp;gt; 新增網站&lt;/b&gt; 進入設定畫面。選左側的 &lt;b&gt;網站&lt;/b&gt;，請先輸入 &lt;b&gt;網站名稱&lt;/b&gt;，與 &lt;b&gt;本機網站資料夾 &lt;/b&gt;的位置。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.flickr.com/photos/edreamer/4753368197/&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://farm5.static.flickr.com/4122/4753368197_115d4d5b87.jpg&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
選左側的 &lt;b&gt;伺服器&lt;/b&gt;，按下右下方的 &lt;b&gt;新增伺服器&lt;/b&gt; 鈕。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.flickr.com/photos/edreamer/4753368235/&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://farm5.static.flickr.com/4143/4753368235_3113282c2d.jpg&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
按 &lt;b&gt;基本&lt;/b&gt; 標籤，這裡要設定的是本機的測試伺服器，所以請您輸入 &lt;b&gt;伺服器名稱&lt;/b&gt; 後，連線方式 設定為 &lt;b&gt;本機 / 網路&lt;/b&gt;， 再 &lt;b&gt;伺服器資料夾&lt;/b&gt; 會將本機的資料夾填上，最重要的是 Web URL，這就是以往的 URL前置字詞，請填上測試網址的路徑。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.flickr.com/photos/edreamer/4753428933/&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://farm5.static.flickr.com/4116/4753428933_d696a1ccb9.jpg&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
按 &lt;b&gt;進階&lt;/b&gt; 標籤，請選擇 &lt;b&gt;測試伺服器 \ 伺服器模式&lt;/b&gt; 的選項為你所使用的語法後，按 &lt;b&gt;儲存&lt;/b&gt; 鈕。&lt;a href=&quot;http://www.flickr.com/photos/edreamer/4754007910/&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;http://farm5.static.flickr.com/4098/4754007910_4e118f0355.jpg&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
回到網站設定時，請核取伺服器為 &lt;b&gt;測試&lt;/b&gt; 即可。&lt;a href=&quot;http://www.flickr.com/photos/edreamer/4754007998/&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; src=&quot;http://farm5.static.flickr.com/4095/4754007998_eac9c6a7d8.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/2757217922556628992/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/03/dw-dreamweaver-cs5.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/2757217922556628992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/2757217922556628992'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/03/dw-dreamweaver-cs5.html' title='[DW] Dreamweaver CS5 互動網站的定義方式'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://farm5.static.flickr.com/4122/4753368197_115d4d5b87_t.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-5643360603543502226</id><published>2012-03-01T09:27:00.002+08:00</published><updated>2012-03-01T10:01:04.542+08:00</updated><title type='text'>[ASP] ASP FSO 整理：刪除文件DeleteFile與文件夾DeleteFolder函式</title><content type='html'>ASP Fso 函式分享：刪除文件DeleteFile與文件夾DeleteFolder&lt;br /&gt;
資料來源：&lt;a href=&quot;http://www.111cn.net/asp/16/05ddb527b7a89bd3f325c85aa5fcaa84.htm&quot;&gt;http://www.111cn.net/asp/16/05ddb527b7a89bd3f325c85aa5fcaa84.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&#39;==============================   &lt;br /&gt;
&#39;函 數 名：DelFolder   &lt;br /&gt;
&#39;作    用：刪除文件夾   &lt;br /&gt;
&#39;參    數：文件夾相對路徑FolderPath   &lt;br /&gt;
&#39;==============================   &lt;br /&gt;
Function DelFolder(FolderPath)   &lt;br /&gt;
If IsFolder(FolderPath)=True Then  &lt;br /&gt;
Set Fso=Server.CreateObject(&quot;Scri&quot;&quot;pting.File&quot;&quot;Sys&quot;&quot;temObject&quot;)   &lt;br /&gt;
Fso.DeleteFolder(Server.MapPath(FolderPath))   &lt;br /&gt;
Set Fso=Nothing  &lt;br /&gt;
End If    &lt;br /&gt;
&#39;  Select Case Err         &lt;br /&gt;
&#39;    Case 424 Response.Write(&quot;方卡錯誤提示：刪除&quot;&amp;amp;FolderPath&amp;amp;&quot;文件夾時，路徑未找到或者該目錄沒有寫入權限！&quot;)   &lt;br /&gt;
&#39;  End Select   &lt;br /&gt;
End Function    &lt;br /&gt;
&lt;br /&gt;
&#39;==============================   &lt;br /&gt;
&#39;函 數 名：DelFile   &lt;br /&gt;
&#39;作    用：刪除文件   &lt;br /&gt;
&#39;參    數：文件相對路徑FilePath   &lt;br /&gt;
&#39;==============================   &lt;br /&gt;
Function DelFile(FilePath)   &lt;br /&gt;
&#39;  On Error Resume Next   &lt;br /&gt;
If IsFile(FilePath)=True Then    &lt;br /&gt;
Set Fso=Server.CreateObject(&quot;Scri&quot;&quot;pting.File&quot;&quot;Sys&quot;&quot;temObject&quot;)   &lt;br /&gt;
Fso.DeleteFile(Server.MapPath(FilePath))   &lt;br /&gt;
Set Fso=Nothing  &lt;br /&gt;
End If  &lt;br /&gt;
&#39;  Select Case Err         &lt;br /&gt;
&#39;    Case 424 Response.Write(&quot;方卡錯誤提示：刪除&quot;&amp;amp;FilePath&amp;amp;&quot;文件時，路徑未找到或者該目錄沒有寫入權限！&quot;)   &lt;br /&gt;
&#39;  End Select   &lt;br /&gt;
End Function  &lt;br /&gt;
&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/5643360603543502226/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/03/asp-asp-fso-deletefiledeletefolder.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/5643360603543502226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/5643360603543502226'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/03/asp-asp-fso-deletefiledeletefolder.html' title='[ASP] ASP FSO 整理：刪除文件DeleteFile與文件夾DeleteFolder函式'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-4998003353288747474</id><published>2012-03-01T09:04:00.002+08:00</published><updated>2012-03-04T01:20:40.113+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dreamweaver"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>[PHP]如何讓一週內的新聞顯示New圖示？</title><content type='html'>在 &lt;a href=&quot;http://www.e-happy.com.tw/indexbookshow.asp?bid=175&quot; target=&quot;_blank&quot;&gt;挑戰Dreamweaver CS4互動網站百寶箱-使用PHP&lt;/a&gt;，書中的第四章新聞系統程式，目前如果是今天的新聞可以顯示 New 圖示，有讀者問到如何讓一週內的新聞顯示New圖示？&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;我們先來看看原來書上的方式：&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpKqhg9xc3EfmH3Zn974sI2IQvRoEbKhv08Dm-KzaUR1n4insAA5-5qTCBGA5-Jed44OdEtulhvOqd_qdb5yWQbSjoD5Hi74Pu3IFU_bicvA-FgATYw7MQCmH9P-axVC828Yv8I7IDWo8/&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php /*start db_input script*/ 1if ($row_RecNews[&#39;news_date&#39;] == date(&quot;Y-m-d&quot;)){ ?&amp;gt; &lt;br /&gt;
&lt;br /&gt;
這個圖示的判斷式其實將資料庫中的日期與今天的日期，以 字串 的方式來比較，相同的話則顯示。&lt;br /&gt;
&lt;br /&gt;
但是如果要如何判斷這個張貼的時間是在一週內呢？這就不是簡單的字串判斷就可以達成了。這裡我們必須要將 2 個以字串顯示的時間 數字化！想到這個問題時，茶米腦中顯示了一個 PHP 的時間函式：strtotime()。&lt;br /&gt;
&lt;br /&gt;
strtotime() 這個函式可以將字串中顯示的時間資料化為Unix時間戳記，詳細的使用方式茶米建記您可以參考：&lt;br /&gt;
挑戰PHP5/MySQL程式設計樂活學一書的 page 8-13 頁。&lt;br /&gt;
&lt;br /&gt;
什麼是Unix時間戳記？&lt;br /&gt;
所謂的Unix時間戳記就是是從 &#39;1970-01-01 00:00:00&#39;GMT 開始的秒數&lt;br /&gt;
所以時間換算的方式要從指定的時間到 &#39;1970-01-01 00:00:00&#39; 之間一共有多少秒&lt;br /&gt;
然後再用date Function轉回字串。&lt;br /&gt;
&lt;br /&gt;
那回到我們的範例，如果我們將張貼的時間與現在系統的時間送入 strtotime() 時會各自得到 2 個時間戳記，如果現在時間的時間戳記減去張貼時的時間戳記小於或等於一週的時間秒數，那代表這則留言是在一週內張貼的，如此即可達成我們的需求！所以首先我們來記算一下一週有幾秒：&lt;br /&gt;
&lt;br /&gt;
7 X 24(hr) X 60(min) X 60(sec) = 604800&lt;br /&gt;
&lt;br /&gt;
那判斷式只要寫成：&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;if ( strtotime(現在的時間) - strtoteim(張貼的時間) &amp;lt;= 604800 ) { 顯示 New 圖示} &lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;即可，所以請依下圖來修改：&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjUJK6pbN8sbLjD8Ew811iX3aO1ZvDvZsjyxsZGcZpk4Iwr_WddJi1fhnSZ72wkeVu-3KSYPjlNvZlCSJ1Vk0JyWy9pOcvQ1TLo7OWkOSxs35TaCXJxDAT86ixkSwNXFHYtsZr1wZ7ogc/&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php /*start db_input script*/ if (strtotime(date(&quot;Y-m-d&quot;)) - strtotime($row_RecNews[&#39;news_date&#39;])&amp;lt;=604800){ ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如此即完成所有的修改，是不是很簡單呢？如此一來，未來要改成讓一個月、二個月、半年的資料顯示圖示，是不是都可以輕鬆達成了呢？&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/4998003353288747474/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/03/phpnew.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/4998003353288747474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/4998003353288747474'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/03/phpnew.html' title='[PHP]如何讓一週內的新聞顯示New圖示？'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpKqhg9xc3EfmH3Zn974sI2IQvRoEbKhv08Dm-KzaUR1n4insAA5-5qTCBGA5-Jed44OdEtulhvOqd_qdb5yWQbSjoD5Hi74Pu3IFU_bicvA-FgATYw7MQCmH9P-axVC828Yv8I7IDWo8/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-7421834919036298976</id><published>2012-02-28T23:47:00.004+08:00</published><updated>2012-03-04T01:19:41.784+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dreamweaver"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>[MySQL]如何刪除MySQL關聯式資料？</title><content type='html'>在 挑戰Dreamweaver CS4互動網站百寶箱--使用PHP&lt;br /&gt;
&lt;a href=&quot;http://www.e-happy.com.tw/indexbookshow.asp?bid=175&quot;&gt;http://www.e-happy.com.tw/indexbookshow.asp?bid=175&lt;/a&gt;&lt;br /&gt;
一書的第十章網站部落格程式，有讀者問到如何在刪除分類時，可以一併刪除分類中的文章，再一併刪除每一篇文章的留言呢？&lt;br /&gt;
我們在書上第10-43~10-45頁有達到刪除分類時，一併刪除分類中的文章，但是沒有刪除每一篇文章的留言。在過去PHP的開發方式中，其實這個完成的方式有其一定的困難度，原因是如果要刪除每一篇文章的留言，要利用迴圈先調出每一篇文章刪除留言後，再刪除文章，再刪除分類！&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;不過在MySQL5支援關聯式資料庫的 foregin key 功能後，這個刪除關聯式資料庫的動作就可以不用寫程式，直接由MySQL資料庫中設定即可達成，以下是茶米完整的說明：&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;一、了解目前問題的所在&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
原來資料庫的關聯&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQiRZf1crW8Z9tp3wfG3v_fdDQz0skw1LVoX9YttmqQNfAZsICzysXEhJKa-flOtIl38lozUdRFLkOExMDEwXdO3EdYWI85ttdflLxhC5Lps8woaBV3cxwyZQT55tgQxAHrqqQRqcZVrU/&quot; /&gt;&lt;br /&gt;
原來的資料庫中的規劃，是由 blogcategory 分類資料表以 ca_id 與 blogmessages 文章資料表關聯，而 blogmessages 文章資料表以 blog_id 再與 blogcomments 資料表關聯。&lt;br /&gt;
那目前的問題不在於刪除 blogcategory 中的資料時再刪除關聯的 blogmessages 中的資料，也不在於刪除 blogmessages 時再刪除 blogcomments 中關聯的資料，而是刪除 blogcategory 時一併刪除 blogmessages 中關聯的資料，也一併刪除 blogcomments 中的資料。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;二、設定MySQL資料庫的 foregin key&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
茶米先不說些深的大道理，你一定會問：支援 foregin key 的資料庫有什麼好處？其實以目前的範例來說，它的好處就是可以維持資料庫的完整性，再白話一點的意思，就是如果有關鍵的資料表，在 A 中刪除了一筆資料，B 裡相關的資料就會一併被刪除！所以設定 foregin key 即可完成我們目前這個範例的需求。&lt;br /&gt;
&lt;br /&gt;
MySQL 的資料表如果要支援 foregin key 有幾個要點：&lt;br /&gt;
MySQL 的版本要在 5.1.X 以上 (好像啦.....)&lt;br /&gt;
資料庫的類型必須是 innoDB&lt;br /&gt;
&lt;br /&gt;
我們書上的範例，剛好都符合這二個要點喔！所以可以馬上著手！以下我們就要教您如何在 phpMyAdmin 中設定資料表之間的 foregin key。&lt;br /&gt;
進入phpMyAdmin 之後，我們要由關聯最底層的 blogcomments 留言資料表的 blog_id (此欄為 foregin key) 與 blogmessage 的主索引 blog_id 設定關聯並建立資料的完整性。&lt;br /&gt;
要注意的是，要建立 foregin key 的欄位必須要建立索引，方式如下，這裡以 blogcomments 留言資料表的 blog_id為例 ：&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi73kIs34R7PmQSLL9h7UhSIJ8P74qI087EmCq2-mGjs-0NFtP3FZQgt6NCm2sn-E3SQPs2-poRvx01SAGZ5M5WPFdmVwodjbgZPKxQZD4vkdfpguqIe0F87-8-Ry6LfyyxZAzl-ezRFW0/s640/fkey03.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmlE66odgQWBuT-_9_fUO4esV2C-wYT9KgkEvdrMgneBAk6fPNsLYmDNPxtjCKnzFdl7ZVSpLd9uRsbn-8KQVYPTBecqnfQpt9FVW9Weq6G-EM6cGxuUy7T3XAq4q2CtnF6ieUqHh_IJI/s640/fkey04.jpg&quot; /&gt;&lt;br /&gt;
接著要建立 blogcomments 留言資料表的 blog_id (此欄為 foregin key) 與 blogmessage 的主索引 blog_id 設定關聯並建立資料的完整性。&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGfYgIGMFMayFfB5dqhu1J6LSBlpPHojsfFPPUAqn5SwGssPssYphX2rtoX2GS1NoMmxUN75ap8WDhg16L6j1aWnd83l2tYQ4Hl5UaOcuxlCJYnJhyphenhyphenrlZPlTxDnYkBN0UXwoLZsepMfrs/s640/fkey07.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2imZ27p7DNmx4oW19mvui77NkfU_grUS-edhtQTDqK3I0Jr6pePNctQ1orwmnxP6ErcxMzInWAzGmGRP3dLULWH91CU5UtBEt_Moz-RnAygsBj4w1xlfHgV0967vukcL6Qmkis4md56Q/s640/fkey08.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
當關聯父資料表的主鍵紀錄行被刪除或修改時，InnoDB 對子資料表中紀錄行的處理方式：&lt;br /&gt;
CASCADE - 會將有所關聯的紀錄行也會進行刪除或修改。&lt;br /&gt;
SET NULL - 會將有所關聯的紀錄行設定成 NULL。&lt;br /&gt;
NO ACTION - 有存在的關聯紀錄行時，會禁止父資料表的刪除或修改動作。&lt;br /&gt;
RESTRICT - 與 NO ACTION 相同。 &lt;br /&gt;
接著要往上一層，建立 blogmessages 文章資料表的 ca_id 為 foregin key 與 blogcategory 的 ca_id 建立關聯並設定資料完整性：&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD_qY9kOSGLmpfGkUxmTghw2jk5S-RJp1DhJRTqYI2RNrdt3MN6DEsFmvk5gmDxe93ttZQQJlBQyhfnAExOjwLod4a_qb3BwrRh1Ywd7B51yCj3WKklwqgS3NsSmPxSAEUXHR1n7pdN2A/s640/fkey01.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMfn8LRgLiYu7Xl8gQj3WhPIOreCn3uPgeyicE5h6HTB3BgoonWolNJaZn1Ieaacrx6z9S-YlMknwzfKBwx2Scki2snZwVoD-uubDT4f6Fp_y7VSWpYmTSHDQpXmvxeR1IT6n1ZVU70qg/s640/fkey02.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2qKEq2-00TBXZtR0UK5DAacGtxNESvZ7H1UTOfeacXQeRLA_PmG_6gexq32UZt1O6Z1KRNu-0z6uokjYAYQud2KblKEiXVEK6CMJlRmbwzIT2h4_J4C4xa_Eu5eiXrLox-pxnTicOX5I/s640/fkey05.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO5VkzjLjRMxRUZpW8O8-30zFBG3QMPwZdZbyIpJDjKytu3EWLY2Kp9lVEwFcN3joEWYSkcnbDwHI7slZbMGhPkoBOkYs_UCAr5tStWogn8Z_mu2D3EAq50vIJ8z6rxuaJE2CJhU5-5kg/s640/fkey06.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
如此即完成關聯的設定！&lt;br /&gt;
&lt;br /&gt;
三、測試設定完的結果&lt;br /&gt;
&lt;br /&gt;
接著回到範例，現在其實不修改程式，因為剛才資料庫的修改，也能達到刪除一個分類，就能刪除該分類的文章及每篇文章的留言。&lt;br /&gt;
&lt;br /&gt;
但是為了讓讀者能更清楚看到結果，請開啟 到原始碼，這個頁面中加入 2 個刪除指令，用來刪除 blogcategory 的分類以及 blogmessages 的文章，現在我們要將刪除 blogmessages 的動作拿掉，只刪除 blogcategory 的分類，看資料庫會不會自動刪除其他 2 個資料表中的資料。&lt;br /&gt;
請將刪除 blogmessages 文章的程式 mark 起來： &lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLdj4JPeQBVD8cIr01_K6hR3lstVH92bEEoE95aVua0HAhA0ANKiH3poQRTlfHbo0PFxScZ8TgfD5ZWoGVJinNViZBdG62Cf8aIhigpMa9LzTZZvk1UoD9PjbOAuXahKBm4YfJ7BUgNBw/s640/fkey09.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFS7aNkTDG4W19rrZKRY6jp7tj7c6WRgnCThKbtNlLkm71X7SdLRYdTrk_Q2p9AMZJJGyPJSST804OYUull7f4SFlCtCj6qLxr24fE2S9yRnORy2hYFmdhqCkM0EyyW7qWn1ENnSqtUPw/s640/fkey10.jpg&quot; /&gt; &lt;br /&gt;
存檔後我們來檢視結果，我們可以看到這個分類除了有文章，每篇文章還有留言：&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-LxL8I7sFO1EcycbkRVS8uLbKbqKb5TdGgPmdmdZwAwsA7SA-6oHN6_lJrMrnpvk-a26Hxih-lDd2-jTLK8OSiP0ucg8QTYLmg2C3CPriU308pdkJtpAoFD8YfXRPBoOqmbO47p2gIp0/s640/fkey11.jpg&quot; /&gt;&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi37niYhfafLiuAJj8U77Q7yZe483Sw65p55EB9KYCdhSpZLik7abgwOkyA-D4KTNfRRfHt0_pUk0-C7BwmfHy6oJvOYSOg5STGK6QPwlu_qJAiGXgJYz15PX9XhvVCPjQHxiZEOEFePZ4/s640/fkey12.jpg&quot; /&gt;&lt;br /&gt;
進入管理界面後我們刪除這個分類：&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgICtX9of3Bewmb9iQD9Y9dEtmZHK-lV3vGJ6FCNQB2FtQIE-RGCxwAO7RbjrLJn_COlVZVkoJWq5V7cqV7kJUsvVVFiCYKWCgqCVg5NoZ4HkSTqCpByCNe5Qx6C56wHPtgTNVY8ho1Mmw/s640/fkey13.jpg&quot; /&gt;&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnGMdpVuI3lS7AbAQfvHxBB3ME42so4oROolGLSWfM0mLJ1_1gy5AD21oibU-k5PirjhN3mPEXTX9NF0uTLkJGFbCbpqQf8ywc61aQk6r79Kzt9jwtaEkjkLIoRXMS7QNtFyjUWbWPMDI/s640/fkey14.jpg&quot; /&gt;&lt;br /&gt;
我們進入 phpMyAdmin 來審視結果：&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhREQRvTYfXMusegJ1HAnV3Ha_LxC_OAq9-zJyV_bpHqKR0YDTjxf4G6K30_Eqe3LbV_eH_mFzjwrp0VHpg9y2AvaFn95pBFT5C7swPT5cj9BmEciZrGbQgkLiiNOT2DXDpN-fQJUadVqs/s640/fkey15.jpg&quot; /&gt;&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSubel-LADRsC1VvOLH-nhb6LitU0RT71t_o3ks3IxpB6C17LdmI-6VTtVqosySODek22M7VmDwZRqmySUio-HM4ur9wV7ZtsTG5rgo9Vmi0iVr_OQcFfZbJ7CP0tfFpKtlbhM9VLqirk/s640/fkey16.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu-FPLCEBDicGjk8ZK5x7SBRKgmU6U9uXz0cRhh7cXTuRZqAc0n45OAfXdo7NLtvBkY5rqk663T7ME5bprytoDwn8WMVgZrOruix3eDlJc1wI8yIQstwCpLUwf7j7RjHldc7802sDkyE4/s640/fkey17.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
測試的結果，相關資料表中的相關記錄果然都自動刪除了！是不是很神奇呢？快點試看看吧！&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/7421834919036298976/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/02/mysql.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/7421834919036298976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/7421834919036298976'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/02/mysql.html' title='[MySQL]如何刪除MySQL關聯式資料？'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQiRZf1crW8Z9tp3wfG3v_fdDQz0skw1LVoX9YttmqQNfAZsICzysXEhJKa-flOtIl38lozUdRFLkOExMDEwXdO3EdYWI85ttdflLxhC5Lps8woaBV3cxwyZQT55tgQxAHrqqQRqcZVrU/s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4972272594064215040.post-581715430253709269</id><published>2012-02-28T22:43:00.005+08:00</published><updated>2012-03-04T01:19:20.047+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.net"/><category scheme="http://www.blogger.com/atom/ns#" term="CS4"/><category scheme="http://www.blogger.com/atom/ns#" term="CS5"/><category scheme="http://www.blogger.com/atom/ns#" term="Dreamweaver"/><category scheme="http://www.blogger.com/atom/ns#" term="JSP"/><title type='text'>[DW] 如何讓DWCS4、CS5支援ASP.net、JSP的程式編輯？</title><content type='html'>&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlcTruu8i5N3IA_OKvuVWNqOsABTyN5CrScW46pTRpKkll99SxCv71gMyiGuvFBNOw07FCLMN9KTGNwuWPPPdF3_fRUOCuKdOCtP1YrgIO4HOPFQm1ePFgq7aQCtKrZ-i3imKA3CrdjCA/s1600/DWCS5_WellCome.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlcTruu8i5N3IA_OKvuVWNqOsABTyN5CrScW46pTRpKkll99SxCv71gMyiGuvFBNOw07FCLMN9KTGNwuWPPPdF3_fRUOCuKdOCtP1YrgIO4HOPFQm1ePFgq7aQCtKrZ-i3imKA3CrdjCA/s400/DWCS5_WellCome.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&amp;nbsp;如何讓DWCS4、CS5支援ASP.net、JSP的程式編輯&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;如果您在 Dreamweaver CS4、CS5 中新增一個網站，設定它的測試環境為 ASP.net 或 JSP 時，您會發現開始編輯時，不僅無法新增伺服器的資料庫連結，甚至也沒有任何伺服器行為？無論您如何檢查環境或是修改設定，就是找不到這些原有的資源。&lt;br /&gt;
&lt;br /&gt;
難道Dreamweaver CS4、CS5 已經不支援 ASP.net 及 JSP 的編輯了嗎？&lt;br /&gt;
&lt;div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;沒錯，由 Dreamweaver CS4 起已經不再支援這些程式語言的編輯了。那該怎麼辦啊？ 如果您仍需要利用 Dreamweaver CS4、CS5 進行網頁程式的編輯，可以利用下面的方式，找回原來的伺服器支援。 我們以 Dreamweaver CS5 為例，請開啟以下的路徑的資料夾：&lt;br /&gt;
&lt;br /&gt;
C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5\configuration\DisabledFeatures (64位元的系統)&lt;br /&gt;
&lt;br /&gt;
C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration\DisabledFeatures (32位元的系統)&lt;br /&gt;
&lt;br /&gt;
其中您會看到有三個擴充程式：&amp;lt;ASPNet_Support.mxp&amp;gt;、&amp;lt;JSP_Support.mxp&amp;gt; 及 &amp;lt;ASP_JS_Support.mxp&amp;gt;，分別就是在目前程式中拿掉的支援功能，您可以視需求利用 Extension Manager 來安裝，即可恢復對這些語法的支援。&lt;br /&gt;
&lt;br /&gt;
不過 Dreamweaver 這個舉動也似乎告訴你，想用 Dreamweaver 來開發互動網站，還是使用 ASP 或 PHP 吧！ (尤其是 PHP)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://edreamertw.blogspot.com/feeds/581715430253709269/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://edreamertw.blogspot.com/2012/02/dwcs4cs5aspnetjsp.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/581715430253709269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4972272594064215040/posts/default/581715430253709269'/><link rel='alternate' type='text/html' href='http://edreamertw.blogspot.com/2012/02/dwcs4cs5aspnetjsp.html' title='[DW] 如何讓DWCS4、CS5支援ASP.net、JSP的程式編輯？'/><author><name>茶米</name><uri>http://www.blogger.com/profile/01341955566207695655</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo3fldztV3Oh8mKVaMjfbL_C6DQDoNcchIAyewVuGZ3J4dj92ky18jbhriNUxs-nXiuKMbkpHd3TI2h3i7p3GKkRQNAly0tc9F_xgU2_mxRqbvFfMDGX2--9ezGqGhg9s/s1600/001.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlcTruu8i5N3IA_OKvuVWNqOsABTyN5CrScW46pTRpKkll99SxCv71gMyiGuvFBNOw07FCLMN9KTGNwuWPPPdF3_fRUOCuKdOCtP1YrgIO4HOPFQm1ePFgq7aQCtKrZ-i3imKA3CrdjCA/s72-c/DWCS5_WellCome.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>