同上
延伸閱讀:
By the power of magic, the following will work:
function get_VB_hash($text) {
$hash = md5($text);
$hex = pack('H*', $hash);
// Pack as a hex string
$int_arr = unpack('C*', $hex);
// Unpack as unsigned chars
return $int_arr; }
or as one line:
unpack('C*', pack('H*', md5($text)) );
延伸閱讀
http://stackoverflow.com/questions/5544884/how-to-mimic-computehash-vb-function-in-php
var r:URLRequest = new URLRequest("javascript:functionName()"); navigateToURL(r,'_self')
To call an Actionscript 3 function from Javascript:
import flash.external.ExternalInterface; ExternalInterface.addCallback("changeText", changeTheText); // so javascript from html can talk to flash function changeTheText(t:String):void { txtText.text = t; }
延伸
http://www.hardcode.nl/archives_155/article_334-call-javascript-function-from-as3-and-viceversa
<strong>代碼:</strong> mysql> select NOW(), TO_DAYS(NOW()), CURDATE(), TO_DAYS(CURDATE()); +---------------------+----------------+------------+--------------------+ | NOW() | TO_DAYS(NOW()) | CURDATE() | TO_DAYS(CURDATE()) | +---------------------+----------------+------------+--------------------+ | 2007-01-25 13:11:53 | 733066 | 2007-01-25 | 733066 | +---------------------+----------------+------------+--------------------+ 1 row in set (0.00 sec) mysql> select TO_DAYS(NOW())-10, TO_DAYS(CURDATE())-10; +-------------------+-----------------------+ | TO_DAYS(NOW())-10 | TO_DAYS(CURDATE())-10 | +-------------------+-----------------------+ | 733056 | 733056 | +-------------------+-----------------------+ 1 row in set (0.00 sec) mysql> select NOW(), FROM_DAYS(TO_DAYS(NOW())-10), CURDATE(), FROM_DAYS(TO_DAYS(CURDATE())-10); +---------------------+------------------------------+------------+----------------------------------+ | NOW() | FROM_DAYS(TO_DAYS(NOW())-10) | CURDATE() | FROM_DAYS(TO_DAYS(CURDATE())-10) | +---------------------+------------------------------+------------+----------------------------------+ | 2007-01-25 13:12:07 | 2007-01-15 | 2007-01-25 | 2007-01-15 | +---------------------+------------------------------+------------+----------------------------------+ 1 row in set (0.00 sec)
先找到 php.ini
裡面會有以下的 code
[Date] ; Defines the default timezone used by the date functions ;date.timezone =
改成
[Date] ; Defines the default timezone used by the date functions date.timezone = Asia/Taipei
WHERE date_myTable < CURRENT_DATE()
ps: 在dreamweaver cs4 有時會在測試的時候 ok, 存檔後又跳回之前的狀態,建議直接看看原始碼,可能會有好幾個之前的同名query,要把多餘的去掉 。
那就要在要插入資料的那一頁自己有個 FORM 可以送資料,送出去以後再用一個PHP檔案撈資料庫,取得要連結的檔名,同時撈資料的這個檔案沒有 HTML,而是用 HEADER()直接轉到要連結的檔案網址。
PS: HEADER 之前不能有任何的空白,符號… <? … 裡的不算 ?>
http://www.commonhealth.com.tw/article/index.jsp?page=1&id=7019
http://www.babyhome.com.tw/mboard.php?op=d&bid=26&sID=3319781&r=9&page=1
http://tw.myblog.yahoo.com/jw!WdJdtWWBBRmP_3yT8cdIExPdTGk-/article?mid=1873&next=1872&l=f&fid=33