asp 的 Convert.ToBase64String() = php 的 base64_encode()

Categories: dreamweaver
Comments: No Comments
Published on: 2011/08/15

同上

 

延伸閱讀:

http://stackoverflow.com/questions/3116805/is-convert-tobase64string-in-net-equal-to-base64-encode-in-php

MD5.ComputeHash()

Categories: dreamweaver
Comments: No Comments
Published on: 2011/08/15

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

AS3 swf call javascript

Categories: dreamweaver, flash
Comments: No Comments
Published on: 2011/08/15
var r:URLRequest = new URLRequest("javascript:functionName()");
navigateToURL(r,'_self')

 

Call AS3 function from JS using ExternalInterface class

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

PHP 日期相關

Categories: dreamweaver, 資料庫
Comments: No Comments
Published on: 2011/08/05
<strong>代碼:</strong> mysql&gt; 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&gt; 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&gt; 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)

將伺服器的時區改變

Categories: dreamweaver, software
Tags: , ,
Comments: No Comments
Published on: 2011/08/05

先找到 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

mysql 撈出比今天早的資料

Categories: dreamweaver, 資料庫
Tags: No Tags
Comments: No Comments
Published on: 2011/07/25

WHERE date_myTable < CURRENT_DATE()

ps: 在dreamweaver cs4 有時會在測試的時候 ok, 存檔後又跳回之前的狀態,建議直接看看原始碼,可能會有好幾個之前的同名query,要把多餘的去掉 。

想要插入一筆資料,再連結一個檔案,後來按回上頁是回到插入資料之前

Categories: dreamweaver, 資料庫
Tags: No Tags
Comments: No Comments
Published on: 2011/07/25

那就要在要插入資料的那一頁自己有個 FORM 可以送資料,送出去以後再用一個PHP檔案撈資料庫,取得要連結的檔名,同時撈資料的這個檔案沒有 HTML,而是用 HEADER()直接轉到要連結的檔案網址。

 

PS: HEADER 之前不能有任何的空白,符號… <? … 裡的不算 ?>

 

中文化 dreamweaver toolbox 的面板

Categories: dreamweaver
Tags: No Tags
Comments: No Comments
Published on: 2011/06/20

是在 includes / resources / NXT.res.php

可以在這一個檔案改變版面的文字

氣切

Categories: 未分類
Tags: No Tags
Comments: No Comments
Published on: 2011/06/07

http://youtu.be/GqRoyYaRfKA

 

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

用 ADOBE FIREWORKS 開啟 PSD 檔時會走樣嗎?

Categories: firework
Comments: No Comments
Published on: 2011/06/03
  1. 如果你把遮罩用在目錄上,恭喜你,這一個遮罩在fireworks 裡會消失掉,解決方法就是把整個群組合併,這樣整個群組就會變成一張圖並有一個遮罩 (PS5.1 & FW 5.1)

 

«page 6 of 19»

Views

Welcome , today is 星期日, 2024/11/24
Clef two-factor authentication