作法就是在HTTP的Content-Disposition欄位動手腳
就可以讓瀏覽器下載檔案
例如你希望瀏覽器直接下載jpg檔,而不是在瀏覽器上看到jpg檔,則php程式碼如下:
<?php
$filename = 'yui.jpg';
header("Content-type: image/jpeg");
header("Content-Disposition: attachment; filename=$filename");
readfile($filename);
?>
接著再把檔案存成xxx.php
當瀏覽器打開xxx.php,就會自動下載yui.jpg
2011年10月24日 星期一
2011年10月20日 星期四
Android手機效能提升
最近有一套叫v6SuperCharger還蠻紅的:
以下是教學網站:
http://gphonefans.net/forum.php?mod=viewthread&tid=45392&page=1#pid725671
http://www.coolaler.com/showthread.php?t=274935
以下是教學網站:
http://gphonefans.net/forum.php?mod=viewthread&tid=45392&page=1#pid725671
http://www.coolaler.com/showthread.php?t=274935
Desire HD的RIL與Radio
以下是從 http://gphonefans.net/forum.php?mod=viewthread&tid=45392&page=76#pid985168 copy出來的句子:
RIL是Radio Interface Library縮寫,是用來跟Radio配對的。但每次你刷ROM時,每ㄧ個原作者可能會有不同的RIL。如果那個作者的RIL與你的RADIO無法配對,則無法發揮RADIO的效能。
所以 建議將搭配您的Radio的RIL.zip 放在[ MicroSDHC記憶卡 ] 底下某檔案夾內,每次刷完ROM以後,就再用 CWM 刷入該RIL.zip即可,就不會有Radio及RIL無法匹配的問題。
有個工具叫RILInfos,可以查詢目前RIL與RADIO的版本,可由以下網址下載
http://gphonefans.net/forum.php?mod=viewthread&tid=53645&highlight=RILInfos
以下是各種版本的對應:
List of RIL versions:
http://forum.xda-developers.com/showthread.php?t=1040986
刷RIL的方法如下:
請使用 CWM v3.0.2.6 版本 :
再選 mounts and storage
選 mount /data ===> 會變成 unmount /data
選 mount /system ===> 會變成 unmount /system
再選 +++++Go Back++++++
刷 RIL_12.54.60.25_26.09.04.11_M2.zip (為 Radio 12.54.60.25U_26.09.04.11_M2 之 對應的 RIL)
RIL是Radio Interface Library縮寫,是用來跟Radio配對的。但每次你刷ROM時,每ㄧ個原作者可能會有不同的RIL。如果那個作者的RIL與你的RADIO無法配對,則無法發揮RADIO的效能。
所以 建議將搭配您的Radio的RIL.zip 放在[ MicroSDHC記憶卡 ] 底下某檔案夾內,每次刷完ROM以後,就再用 CWM 刷入該RIL.zip即可,就不會有Radio及RIL無法匹配的問題。
有個工具叫RILInfos,可以查詢目前RIL與RADIO的版本,可由以下網址下載
http://gphonefans.net/forum.php?mod=viewthread&tid=53645&highlight=RILInfos
以下是各種版本的對應:
List of RIL versions:
- RIL_12.28b.60.140e_26.03.02.26_M.........HTC-RIL 2.2.0031HM (Sep 28 2010,23:02:55)
- RIL_12.28e.60.140f_26.04.02.17_M2........HTC-RIL 2.2.0048HM (Nov 17 2010,10:44:47)
- RIL_12.28e.60.140f_26.04.02.17_M2_SF...HTC-RIL 2.2.0048HM (Nov 17 2010,10:44:47)
- RIL_12.28g.60.140f_26.05.05.27_M3........HTC-RIL 2.2.0079HM (Jan 14 2011,14:56:03)
- RIL_12.35d.60.140f_26.06.03.24_M2........HTC-RIL 2.2.0079HM (Jan 14 2011,14:56:03)
- RIL_12.35d.60.140f_26.08.03.07_M..........HTC-RIL 2.2.0131HM (Mar 18 2011,00:40:15)
- RIL_12.39.60.19_26.06.04.06_M..............HTC-RIL 2.2.0077HM (Jan 9 2011,23:35:33)
- RIL_12.41.60.19_26.06.04.14_M..............HTC-RIL 2.2.0099HM (Jan 27 2011,16:12:49)
- RIL_12.54.60.25_26.09.04.11_M2............HTC-RIL 2.2.0160HM (Jun 3 2011,23:41:59)
- RIL_12.56.60.25_26.10.04.03_M..............HTC-RIL 2.2.0153HM (Apr 22 2011,14:09:20)
http://forum.xda-developers.com/showthread.php?t=1040986
刷RIL的方法如下:
請使用 CWM v3.0.2.6 版本 :
再選 mounts and storage
選 mount /data ===> 會變成 unmount /data
選 mount /system ===> 會變成 unmount /system
再選 +++++Go Back++++++
刷 RIL_12.54.60.25_26.09.04.11_M2.zip (為 Radio 12.54.60.25U_26.09.04.11_M2 之 對應的 RIL)
2011年10月14日 星期五
Android ROM沒有中文語系的問題
我有查到兩種作法,雖然我都沒測試過
1. 去market下載morelocale軟體來更改系統設定 https://market.android.com/details?id=jp.co.c_lis.ccl.morelocale
2. 第二種做是修改default.xml檔,細節在以下網址:
http://www.mobile01.com/topicdetail.php?f=566&t=1876599&p=1366
以下內容是那個網址的部份內容:
下載rom後把裡面的system/customize/CID/default.xml 抽出
然後用記事本打開
然後把下面的全複製.把原本的全取代更換為以下
=================================================================================
<?xml version="1.0" encoding="utf-8"?>
<customization_form>
<category name="system">
<module name="locale">
<function>
<set name="single">
<item name="total_list">en_GE;en_TW;zh_TW</item>
<item type="boolean" name="en_EG">yes</item>
<item type="boolean" name="en_TW">yes</item>
<item type="boolean" name="zh_TW">yes</item>
</set>
</function>
</module>
<module name="Settings">
<function name="screen_timeout">
<set name="plenty">
<item name="value1">15000</item>
<item name="value2">30000</item>
<item name="value3">45000</item>
<item name="value4">60000</item>
<item name="value5">120000</item>
<item name="value6">600000</item>
<item name="value7">-1</item>
</set>
</function>
<function name="power_saver_screen_timeout">
<set name="plenty">
<item name="value1">15000</item>
<item name="value2">30000</item>
<item name="value3">45000</item>
<item name="value4">60000</item>
<item name="value5">120000</item>
</set>
</function>
</module>
<module name="defaultTime1224">
<function>
<set name="single">
<item name="default">24</item>
</set>
</function>
</module>
<module name="InputMethod">
<function name="IME_language_set">
<set name="single">
<item type="boolean" name="English">yes</item>
<item type="boolean" name="Handwriting">yes</item>
<item type="boolean" name="ZuhYin">yes</item>
<item type="boolean" name="CangJie">yes</item>
<item type="boolean" name="PinYin">yes</item>
<item type="boolean" name="Stroke">yes</item>
</set>
</function>
<function name="IME_sip_set">
<set name="single">
<item name="total_list">Handwriting;ZuhYin;CangJie;PinYin;Stroke;</item>
<item type="boolean" name="Handwriting">yes</item>
<item type="boolean" name="ZuhYin">yes</item>
<item type="boolean" name="CangJie">yes</item>
<item type="boolean" name="PinYin">yes</item>
<item type="boolean" name="Stroke">yes</item>
</set>
</function>
</module>
<module name="deviceData">
<function>
<set name="single">
<item name="device_name">HTC Desire HD A9191</item>
</set>
</function>
</module>
<module name="deviceData1">
<function>
<set name="single">
<item name="sw_number">NA</item>
</set>
</function>
</module>
</category>
<category name="application">
<module name="Crash_Report">
<function name="setting">
<set name="single">
<item name="turn_off_report" type="boolean">no</item>
</set>
</function>
</module>
<module name="FOTA">
<function name="settings">
<set name="single">
<item name="Default_Download_Wifi" type="boolean">yes</item>
</set>
</function>
</module>
</category>
<category name="Settings">
<module name="properties">
<function>
<set name="single">
<item name="unknown_sources_visibility">true</item>
</set>
</function>
</module>
</category>
<category name="Settings">
<module name="properties">
<function>
<set name="single">
<item name="market_name">HTC Desire HD A9191</item>
</set>
</function>
</module>
</category>
<BootConfiguration>
<BootAnimation animation="/data/local/htc_bootanimation.zip" audio="/system/customize/resource/android_audio.mp3" />
</BootConfiguration>
<ShutdownConfiguration>
<ShutdownAnimation image_png="/data/local/htc_downanimation.zip" image="" fps="15" />
</ShutdownConfiguration>
</customization_form>
=========================================================================================
修改好後儲存 確認你是存檔xml 而不是另存到txt
然後放回原路徑.這樣子就會有中文跟手寫還有注音
再來就是刷rom
1. 去market下載morelocale軟體來更改系統設定 https://market.android.com/details?id=jp.co.c_lis.ccl.morelocale
2. 第二種做是修改default.xml檔,細節在以下網址:
http://www.mobile01.com/topicdetail.php?f=566&t=1876599&p=1366
以下內容是那個網址的部份內容:
下載rom後把裡面的system/customize/CID/default.xml 抽出
然後用記事本打開
然後把下面的全複製.把原本的全取代更換為以下
=================================================================================
<?xml version="1.0" encoding="utf-8"?>
<customization_form>
<category name="system">
<module name="locale">
<function>
<set name="single">
<item name="total_list">en_GE;en_TW;zh_TW</item>
<item type="boolean" name="en_EG">yes</item>
<item type="boolean" name="en_TW">yes</item>
<item type="boolean" name="zh_TW">yes</item>
</set>
</function>
</module>
<module name="Settings">
<function name="screen_timeout">
<set name="plenty">
<item name="value1">15000</item>
<item name="value2">30000</item>
<item name="value3">45000</item>
<item name="value4">60000</item>
<item name="value5">120000</item>
<item name="value6">600000</item>
<item name="value7">-1</item>
</set>
</function>
<function name="power_saver_screen_timeout">
<set name="plenty">
<item name="value1">15000</item>
<item name="value2">30000</item>
<item name="value3">45000</item>
<item name="value4">60000</item>
<item name="value5">120000</item>
</set>
</function>
</module>
<module name="defaultTime1224">
<function>
<set name="single">
<item name="default">24</item>
</set>
</function>
</module>
<module name="InputMethod">
<function name="IME_language_set">
<set name="single">
<item type="boolean" name="English">yes</item>
<item type="boolean" name="Handwriting">yes</item>
<item type="boolean" name="ZuhYin">yes</item>
<item type="boolean" name="CangJie">yes</item>
<item type="boolean" name="PinYin">yes</item>
<item type="boolean" name="Stroke">yes</item>
</set>
</function>
<function name="IME_sip_set">
<set name="single">
<item name="total_list">Handwriting;ZuhYin;CangJie;PinYin;Stroke;</item>
<item type="boolean" name="Handwriting">yes</item>
<item type="boolean" name="ZuhYin">yes</item>
<item type="boolean" name="CangJie">yes</item>
<item type="boolean" name="PinYin">yes</item>
<item type="boolean" name="Stroke">yes</item>
</set>
</function>
</module>
<module name="deviceData">
<function>
<set name="single">
<item name="device_name">HTC Desire HD A9191</item>
</set>
</function>
</module>
<module name="deviceData1">
<function>
<set name="single">
<item name="sw_number">NA</item>
</set>
</function>
</module>
</category>
<category name="application">
<module name="Crash_Report">
<function name="setting">
<set name="single">
<item name="turn_off_report" type="boolean">no</item>
</set>
</function>
</module>
<module name="FOTA">
<function name="settings">
<set name="single">
<item name="Default_Download_Wifi" type="boolean">yes</item>
</set>
</function>
</module>
</category>
<category name="Settings">
<module name="properties">
<function>
<set name="single">
<item name="unknown_sources_visibility">true</item>
</set>
</function>
</module>
</category>
<category name="Settings">
<module name="properties">
<function>
<set name="single">
<item name="market_name">HTC Desire HD A9191</item>
</set>
</function>
</module>
</category>
<BootConfiguration>
<BootAnimation animation="/data/local/htc_bootanimation.zip" audio="/system/customize/resource/android_audio.mp3" />
</BootConfiguration>
<ShutdownConfiguration>
<ShutdownAnimation image_png="/data/local/htc_downanimation.zip" image="" fps="15" />
</ShutdownConfiguration>
</customization_form>
=========================================================================================
修改好後儲存 確認你是存檔xml 而不是另存到txt
然後放回原路徑.這樣子就會有中文跟手寫還有注音
再來就是刷rom
訂閱:
文章 (Atom)