2010年9月12日 星期日

[PHP]解決Notice: A session had already been started – ignoring session_start() 問題

將原來的

session_start();

修改為

if (!isset($_SESSION)) {
session_start();
}

2010年9月11日 星期六

超好用的網頁layout規畫工具:Balsamiq Mockups

http://wp.tenz.net/archives/723

Really Simple Color Picker (jQuery)

http://www.web2media.net/laktek/2008/10/27/really-simple-color-picker-in-jquery/

2010年9月10日 星期五

如何將ipod的音樂同步到電腦

相信使用過iPod系列產品的玩家們都應該知道,可以透過iTunes可以將電腦內的檔案同步到iPod內,但是一旦電腦發生狀況,裡面的檔案不見了,想要之前的檔案就必須要把iPod的檔案回復,但我們必須要使用一些軟體來幫助我們回復,如:Senuti...也就是本章節要介紹的軟體。

第一步當你下載完成之後,選擇完複製檔案的位置後,記得按下一步continue!

第二步要注意使用Senuti前,請先開啟iTunes連接iPod,確定iPod管理的部份有勾選啟用磁碟功能,以及手動管理音樂。


接著進入Sunuti視窗內,應該就可以瀏覽iPod內所有的檔案,而在檔案旁邊有小藍點的代表您的電腦中已經有相同檔名的檔案了,無需複製造成資源浪費。PS:小編電腦太乾淨,所以沒有藍點出現...


如果要複製內容的話,請選擇音樂或影片後,按下左上方綠色按鈕的Transfer。

複製完畢之後可以開啟iTunes,在"最近加入"的標籤內可以看到剛剛複製過來的檔案。

摘自:http://www.goapple.com.tw/index.php?pa=guide_view&id=193&kid=

2010年9月5日 星期日

Error log : PHP Notice: Undefined offset solution

use below code
isset($test[4]) ? $test[4] : '';

Raphaël—JavaScript Library

Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want to create your own specific chart or image crop and rotate widget, for example, you can achieve it simply and easily with this library.

Raphaël [ˈrafēəl] uses the SVG W3C Recommendation and VML as a base for creating graphics. This means every graphical object you create is also a DOM object, so you can attach JavaScript event handlers or modify them later. Raphaël’s goal is to provide an adapter that will make drawing vector art compatible cross-browser and easy.

Raphaël currently supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+.

官網:http://raphaeljs.com/

2010年9月2日 星期四

[Debug]Apache error.log 出現 load php_exif.dll failed.

用了 The AppServ Open Project - 2.5.10 for Windows 來安裝Web環境,居然在Apache Start就出現這個error(在error.log裡面可以看到).搞了半天才搞懂,原來PHP5 必須先Load php_mbstring.dll才能Load php_exif.dll,把PHP.ini裡extension部分改了順序就OK囉!

The Apache2.2 service is restarting.
The Apache2.2 service has restarted.
pache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Sun Mar 22 14:30:56 2009] [notice] Server built: Jan 18 2008 00:37:19
[Sun Mar 22 14:30:56 2009] [notice] Parent: Created child process 4020
[Sun Mar 22 14:30:56 2009] [notice] Child 4020: Child process is running
[Sun Mar 22 14:30:57 2009] [notice] Child 4020: Acquired the start mutex.
[Sun Mar 22 14:30:57 2009] [notice] Child 4020: Starting 64 worker threads.
[Sun Mar 22 14:30:57 2009] [notice] Child 4020: Starting thread to listen on port 80.
The Apache2.2 service is restarting.
[Sun Mar 22 14:41:22 2009] [notice] Parent: Received restart signal -- Restarting the server.
[Sun Mar 22 14:41:22 2009] [notice] Child 4020: Exit event signaled. Child process is ending.
PHP Warning: PHP Startup: Unable to load dynamic library 'E:/AppServ\\php5\\ext\\php_exif.dll' - \xa7\xe4\xa4\xa3\xa8\xec\xab\xfc\xa9w\xaa\xba\xbc\xd2\xb2\xd5\xa1C\r\n in Unknown on line 0
[Sun Mar 22 14:41:22 2009] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Sun Mar 22 14:41:22 2009] [notice] Server built: Jan 18 2008 00:37:19
[Sun Mar 22 14:41:22 2009] [notice] Parent: Created child process 1312
PHP Warning: PHP Startup: Unable to load dynamic library 'E:/AppServ\\php5\\ext\\php_exif.dll' - \xa7\xe4\xa4\xa3\xa8\xec\xab\xfc\xa9w\xaa\xba\xbc\xd2\xb2\xd5\xa1C\r\n in Unknown on line 0
[Sun Mar 22 14:41:22 2009] [notice] Child 1312: Child process is running
[Sun Mar 22 14:41:23 2009] [notice] Child 4020: Released the start mutex
[Sun Mar 22 14:41:23 2009] [notice] Child 1312: Acquired the start mutex.
[Sun Mar 22 14:41:23 2009] [notice] Child 1312: Starting 64 worker threads.
[Sun Mar 22 14:41:23 2009] [notice] Child 1312: Starting thread to listen on port 80.
[Sun Mar 22 14:41:24 2009] [notice] Child 4020: All worker threads have exited.
[Sun Mar 22 14:41:24 2009] [notice] Child 4020: Child process is exiting

wibiya widget