https://www.youtube.com/watch?v=ROZfJ7svQH0
youtube教學
http://php.net/manual/en/control-structures.do.while.php
1. do {...} while (0);(不懂)
<?phpdo {
if ($i < 5) {
echo "i is not big enough";
break;
}
$i *= $factor;
if ($i < $minimum_limit) {
break;
}
echo "i is ok";
/* process i */} while (0);?>
Don't worry if you don't understand this right away or at all. You can code scripts and even powerful scripts without using this 'feature'. Since PHP 5.3.0, it is possible to use goto operator instead of this hack.
2. for loop條件可以空著另外寫,或寫兩個以上條件如
for ($i = 1, $j = 0; $i <= 10; $j += $i, print $i, $i++);
或
for($i = 0, $size = count($people); $i < $size; ++$i) {
$people[$i]['salt'] = mt_rand(000000, 999999);
}
3. Looping through letters is possible.
for($col = 'R'; $col != 'AD'; $col++) {
echo $col.' ';
}
returns: R S T U V W X Y Z AA AB AC
Take note that you can't use $col < 'AD'. It only works with !=
Very convenient when working with excel columns.
文章加密
;
2018年6月29日 星期五
2018年6月28日 星期四
Introduction to Algorithms
https://www.youtube.com/watch?v=JPyuH4qXLZ0
http://labs.xjtudlc.com/labs/wldmt/reading%20list/books/Algorithms%20and%20optimization/Introduction%20to%20Algorithms.pdf
http://seller.pcstore.com.tw/S181685352/C1198212925.htm看一看這個買,配聯邦周五限量回饋100最便宜
php官網文件看一看http://php.net/manual/en/tutorial.useful.php
在看laravel https://laravel.com/
http://labs.xjtudlc.com/labs/wldmt/reading%20list/books/Algorithms%20and%20optimization/Introduction%20to%20Algorithms.pdf
http://seller.pcstore.com.tw/S181685352/C1198212925.htm看一看這個買,配聯邦周五限量回饋100最便宜
php官網文件看一看http://php.net/manual/en/tutorial.useful.php
在看laravel https://laravel.com/
2018年6月11日 星期一
aria-label 是一個 HTML attribute,用來告訴讀屏軟件某個元素是什麼,提升 Web Accessibility
https://lepture.com/zh/2015/fe-aria-label
2018年6月9日 星期六
php配合phpmailer用gmail寄信
總共四步驟
1.主教學
http://belleaya.pixnet.net/blog/post/27410978-%5B%E6%95%99%E5%AD%B8%5D-php-%E5%88%A9%E7%94%A8-phpmailer-%E9%80%8F%E9%81%8E-gmail-%E5%AF%84%E4%BF%A1
2.權限要打開
https://myaccount.google.com/lesssecureapps
3.因為教學比較舊了,其中class.phpmailer.php檔案有一個eregi要改成preg_match
https://stackoverflow.com/questions/4522571/phpmailer-deprecated-eregi-to-preg-match-conversion
4.寄件人和標題中文亂碼的問題
http://bojack.pixnet.net/blog/post/41402533-%E3%80%90%E7%A8%8B%E5%BC%8F%E3%80%91%E8%A7%A3%E6%B1%BA-phpmailer-%E4%BA%82%E7%A2%BC%E7%9A%84%E5%95%8F%E9%A1%8C
http://darkbear.pixnet.net/blog/post/23552224-php---%E8%B7%A8%E5%AA%92---phpmailer%E8%88%87%E7%B7%A8%E7%A2%BC%E5%95%8F%E9%A1%8C1
1.主教學
http://belleaya.pixnet.net/blog/post/27410978-%5B%E6%95%99%E5%AD%B8%5D-php-%E5%88%A9%E7%94%A8-phpmailer-%E9%80%8F%E9%81%8E-gmail-%E5%AF%84%E4%BF%A1
2.權限要打開
https://myaccount.google.com/lesssecureapps
3.因為教學比較舊了,其中class.phpmailer.php檔案有一個eregi要改成preg_match
https://stackoverflow.com/questions/4522571/phpmailer-deprecated-eregi-to-preg-match-conversion
4.寄件人和標題中文亂碼的問題
要做下列二件事
1. 在 class.phpmailer.php 裡
把 var $CharSet = 'iso-8859-1'; 改成 var $CharSet = 'UTF-8';
2. 在寄信的程式頁面,再引入class.phpmailer.php之後加入這一行
mb_internal_encoding('UTF-8');
http://bojack.pixnet.net/blog/post/41402533-%E3%80%90%E7%A8%8B%E5%BC%8F%E3%80%91%E8%A7%A3%E6%B1%BA-phpmailer-%E4%BA%82%E7%A2%BC%E7%9A%84%E5%95%8F%E9%A1%8C
http://darkbear.pixnet.net/blog/post/23552224-php---%E8%B7%A8%E5%AA%92---phpmailer%E8%88%87%E7%B7%A8%E7%A2%BC%E5%95%8F%E9%A1%8C1
2018年6月4日 星期一
訂閱:
文章 (Atom)